question command support

This commit is contained in:
Kirill Ivlev 2024-11-12 15:52:19 +04:00
parent 379b97392d
commit b5bc533db2

View file

@ -81,6 +81,11 @@ export class BotUpdate {
this.gameService.emit({ cmd: 'GetCards'}, { user: ctx.from.id, inline: false});
}
@Command('question')
async onQuestionCommand(@Ctx() ctx: Context) {
this.gameService.emit({ cmd: 'GetQuestion'}, { user: ctx.from.id, inline: false });
}
@Command('next')
async onNextCommand(@Ctx() ctx: Context) {
if(ctx.from.id === 11178819) {