Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
snazzyfox committed Aug 18, 2023
1 parent fc9bbc4 commit 2403a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dingomata/discord_bot/commands/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def on_guild_message_create(event: hikari.GuildMessageCreateEvent) -> None
await _chat_guild_respond_ai(event)
# Always add message to AI message buffer in case it's needed later
if event.message.content:
_ai_message_buffer[event.guild_id].append(event.message)
_ai_message_buffer[event.channel_id].append(event.message)
if should_reply:
return
if await values.chat_rb_enabled.get_value(event.guild_id):
Expand Down Expand Up @@ -61,7 +61,7 @@ async def _chat_guild_respond_ai(event: hikari.GuildMessageCreateEvent) -> None:
previous_message = previous_message.referenced_message
else:
# There's nothing to reply to. Use previous message history in chat instead
for msg in _ai_message_buffer[event.guild_id]:
for msg in _ai_message_buffer[event.channel_id]:
role = 'assistant' if msg.member.id == bot_member.id else 'user'
history.insert(0, {
"role": role,
Expand Down

0 comments on commit 2403a85

Please sign in to comment.