various issues with split messages #1

Open
opened 2026-10-08 03:38:31 -04:00 by Jaegerwald · 1 comment
  • codeblocks are split up (shouldn't do that)
  • character limit applies across messages and isn't per message
    fix pls
- codeblocks are split up (shouldn't do that) - character limit applies across messages and isn't per message fix pls
Owner

@Jaegerwald wrote in #1 (comment):

  • codeblocks are split up (shouldn't do that)
  • character limit applies across messages and isn't per message
    fix pls

Lines 47 to 54 in df87ff5
lines = [line for line in response.split("\n") if line]
for i, line in enumerate(lines):
async with message.channel.typing():
await asyncio.sleep(0.5)
if i == 0:
reply = await message.reply(line[:2000])
else:
reply = await message.channel.send(line[:2000])


character limit is definitely per line/message
codeblocks splitting isnt a priority as the intention isnt for the model to write code
it can be considered for after the refactor i guess but its proving to be a lot of work so im not really gonna add anything new at the moment

@Jaegerwald wrote in https://git.turac.in/Zoid/DiscordChatbot/issues/1#issue-13: > * codeblocks are split up (shouldn't do that) > * character limit applies across messages and isn't per message > fix pls https://git.turac.in/Zoid/DiscordChatbot/src/commit/df87ff5d56a6a3d5eb5669f0f7c27ee561967db2/main.py#L47-L54 character limit is definitely per line/message codeblocks splitting isnt a priority as the intention isnt for the model to write code it can be considered for after the refactor i guess but its proving to be a lot of work so im not really gonna add anything new at the moment
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Zoid/DiscordChatbot#1
No description provided.