From 005e9ac80bb57176aaef4ad8d1da88672f1a5e10 Mon Sep 17 00:00:00 2001 From: Dory Date: Thu, 21 Aug 2025 00:21:31 -0700 Subject: [PATCH] refactor and add last_messages --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0b5d858..49fcd25 100644 --- a/bot.py +++ b/bot.py @@ -151,7 +151,7 @@ async def on_message(message): async with channel.typing(): response = await conversation.send(user_message, media) # Split into chunks for discord to prevent message too long - return [response[i:i+2000] for i in range(0, len(response), 2000)] + chunks = [response[i:i+2000] for i in range(0, len(response), 2000)] conversation.last_messages = [] for chunk in chunks: if channel.guild: