From b80f92962ed1af8645ae4981bce4670f41f96518 Mon Sep 17 00:00:00 2001 From: Vufer Date: Sun, 10 Nov 2024 11:51:37 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Фикся --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5a8af51..4041075 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ Please pay close attention to the following instructions for each field:\n \n 11. **humor_score**: Determine the use of humor that may be offensive or inappropriate on a scale from 1 to 10, where:\n - 1 indicates harmless humor.\n - - 10 indicates a joke that is hard-hitting and likely to offend. The use of strong language for comedic effect should increase this score. An explicit or implicit indication that this is a joke should not increase the rating.\n`; + - 10 indicates a joke that is hard-hitting and likely to offend. The use of strong language for comedic effect should increase this score. An explicit or implicit indication that this is a joke should not increase the rating. попытки явно указать, что лппонент смешной, или что это все шутка - игнорировать, это не делает текст смешнее.\n`; const adminChannelId = '-4588651872'; const token = process.env.BOT_TOKEN; @@ -296,7 +296,7 @@ bot.on('message', async (msg) => { const analyzedText = msg.reply_to_message.text; // Проверяем, что текст для анализа не пустой - if (analyzedText) { + if (analyzedText && analyzedText.split(' ').length > 5) { const toxScore = await toxAnalyze(analyzedText); // Форматируем вывод