redirect * to osu.ppy.sh

This commit is contained in:
Haroon 2024-06-30 18:36:38 +01:00
parent b8ac46734a
commit 4b3487ad17

View file

@ -23,6 +23,7 @@ const app = new App({
}
});
const states = new Map();
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 () => {
await app.start(41691);