chat filter

This commit is contained in:
Timofey Gelazoniya 2022-10-20 18:08:18 +03:00
parent d1d925052d
commit 1793334347
Signed by: zeldon
GPG Key ID: 047886915281DD2A

View File

@ -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);
});