Updated plugin, makes it respond more intelligently

This commit is contained in:
cameron 2024-12-20 23:42:38 -05:00
parent d721d6c6df
commit 7ba729f372
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ async def handle_message(ctx):
if (len(very_recent_history) == 2): 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}"): if very_recent_history[0].startswith(f"{bot_name}") and not very_recent_history[1].startswith(f"{bot_name}"):
random_roll = random.random() random_roll = random.random()
if (random_roll < 0.7): if (random_roll < 0.25):
logger.info("Messaged right after us... Replying") logger.info("Messaged right after us... Replying")
await llm_response(ctx) await llm_response(ctx)
return return