question command support
This commit is contained in:
parent
379b97392d
commit
b5bc533db2
1 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ export class BotUpdate {
|
||||||
this.gameService.emit({ cmd: 'GetCards'}, { user: ctx.from.id, inline: false});
|
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')
|
@Command('next')
|
||||||
async onNextCommand(@Ctx() ctx: Context) {
|
async onNextCommand(@Ctx() ctx: Context) {
|
||||||
if(ctx.from.id === 11178819) {
|
if(ctx.from.id === 11178819) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue