From f57370607766284868974b3365942f3393c8ccb0 Mon Sep 17 00:00:00 2001 From: Migatu Date: Thu, 19 Oct 2023 14:05:38 +0200 Subject: [PATCH] Fix --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2d065c1..4524c5b 100644 --- a/bot.py +++ b/bot.py @@ -581,7 +581,8 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music history = [] history.append(GPT_SETTINGS[0]) for (slowo, reakcja) in word_reactions.items(): - temp = {"role : system", "content : Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]} + if not reakcja[3]: + temp = {"role : system", "content : Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]} if music: history.extend(message_table_muzyka)