From 1793334347bf481cd22b6a10a00b0a97848f2432 Mon Sep 17 00:00:00 2001 From: xzeldon Date: Thu, 20 Oct 2022 18:08:18 +0300 Subject: [PATCH] chat filter --- src/handlers/balabola.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/balabola.ts b/src/handlers/balabola.ts index 5aa12b3..3326816 100644 --- a/src/handlers/balabola.ts +++ b/src/handlers/balabola.ts @@ -53,7 +53,7 @@ filter.hear(/^(?:пр)\s(1|2|3|4|5|6|7)\s(.*)?$/i, async ctx => { }); filter.use(async ctx => { - await ctx.send('генерирую!!'); + if (ctx.isChat) return; const result = await balabolaQueue.add(() => balabola(ctx.text!, 6)); await ctx.send(result); });