From b5bc533db23ec215b5196166fe42f49499bb42fb Mon Sep 17 00:00:00 2001 From: Kirill Ivlev Date: Tue, 12 Nov 2024 15:52:19 +0400 Subject: [PATCH] question command support --- src/bot/bot.update.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bot/bot.update.ts b/src/bot/bot.update.ts index 7fd7932..9b100f7 100644 --- a/src/bot/bot.update.ts +++ b/src/bot/bot.update.ts @@ -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) {