From d102bdbd16ec390346f63241e940274de2a3f9ed Mon Sep 17 00:00:00 2001 From: Dory Date: Sun, 17 Aug 2025 21:39:43 -0700 Subject: [PATCH] feat: Use message.reply instead of message.channel.send --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index fb9976e..d3e8641 100644 --- a/bot.py +++ b/bot.py @@ -96,11 +96,11 @@ async def on_message(message): ) bot_response = response.choices[0].message.content conversation_history[channel_id].append({"role": "assistant", "content": bot_response}) - await message.channel.send(bot_response) + await message.reply(bot_response) except Exception as e: print(f"An error occurred: {e}") conversation_history[channel_id].pop() # Remove user message on error - await message.channel.send("Sorry, I had a little hiccup. Baka!") + await message.reply("Sorry, I had a little hiccup. Baka!") # --- Slash Commands ---