diff --git a/index.ts b/index.ts index 799a699..e9283d9 100644 --- a/index.ts +++ b/index.ts @@ -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);