i made a typo and i feel so silly

This commit is contained in:
DaInfLoop 2024-09-04 19:16:52 +01:00
parent 59dee68ce0
commit 5bbf1163e4
No known key found for this signature in database
GPG key ID: 8B96C44DDF5756E4

View file

@ -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);