From 4b3487ad17bba50ad9e8c8459b751d31ce4edc03 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Sun, 30 Jun 2024 18:36:38 +0100 Subject: [PATCH] redirect * to osu.ppy.sh --- index.ts | 5 +++++ 1 file changed, 5 insertions(+) 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);