From 7ba729f372955ecf272d2f15149d25ff6b043712 Mon Sep 17 00:00:00 2001 From: cameron Date: Fri, 20 Dec 2024 23:42:38 -0500 Subject: [PATCH] Updated plugin, makes it respond more intelligently --- plugins/botchat/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/botchat/plugin.py b/plugins/botchat/plugin.py index 31426f2..4a0d80b 100644 --- a/plugins/botchat/plugin.py +++ b/plugins/botchat/plugin.py @@ -361,7 +361,7 @@ async def handle_message(ctx): if (len(very_recent_history) == 2): if very_recent_history[0].startswith(f"{bot_name}") and not very_recent_history[1].startswith(f"{bot_name}"): random_roll = random.random() - if (random_roll < 0.7): + if (random_roll < 0.25): logger.info("Messaged right after us... Replying") await llm_response(ctx) return