i made a typo and i feel so silly
This commit is contained in:
parent
59dee68ce0
commit
5bbf1163e4
7
index.ts
7
index.ts
|
@ -18,7 +18,7 @@ function checkUserOk(user: UsersInfoResponse['user']) {
|
||||||
return user!.is_admin || user!.is_owner || user!.is_primary_owner
|
return user!.is_admin || user!.is_owner || user!.is_primary_owner
|
||||||
}
|
}
|
||||||
|
|
||||||
app.command("/check-eligiblity", async ctx => {
|
const eligibilityCmd = async ctx => {
|
||||||
await ctx.ack();
|
await ctx.ack();
|
||||||
|
|
||||||
const text = ctx.command.text.slice();
|
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 () => {
|
; (async () => {
|
||||||
await app.start(60275);
|
await app.start(60275);
|
||||||
|
|
Loading…
Reference in a new issue