diff --git a/index.ts b/index.ts index be4fec0..eb67f60 100644 --- a/index.ts +++ b/index.ts @@ -18,7 +18,7 @@ function checkUserOk(user: UsersInfoResponse['user']) { return user!.is_admin || user!.is_owner || user!.is_primary_owner } -app.command("/check-eligiblity", async ctx => { +const eligibilityCmd = async ctx => { await ctx.ack(); const text = ctx.command.text.slice(); @@ -101,7 +101,10 @@ app.command("/check-eligiblity", async ctx => { ] }) } -}) +} + +app.command("/check-eligiblity", eligibilityCmd) +app.command("/check-eligibility", eligibilityCmd) ; (async () => { await app.start(60275);