mirror of
https://git.haroon.hackclub.app/haroon/osu-leaderboard.git
synced 2024-11-23 21:23:40 +00:00
redirect * to osu.ppy.sh
This commit is contained in:
parent
b8ac46734a
commit
4b3487ad17
1 changed files with 5 additions and 0 deletions
5
index.ts
5
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue