redirect * to osu.ppy.sh
This commit is contained in:
parent
b8ac46734a
commit
4b3487ad17
5
index.ts
5
index.ts
|
@ -23,6 +23,7 @@ const app = new App({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const states = new Map();
|
const states = new Map();
|
||||||
|
|
||||||
app.command("/osu-link", async (ctx) => {
|
app.command("/osu-link", async (ctx) => {
|
||||||
|
@ -637,6 +638,10 @@ app.action(/change-leaderboard\|.+/, async (ctx) => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
receiver.router.get('*', (req, res) => {
|
||||||
|
res.redirect(`https://osu.ppy.sh${req.path}`)
|
||||||
|
})
|
||||||
|
|
||||||
; (async () => {
|
; (async () => {
|
||||||
await app.start(41691);
|
await app.start(41691);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue