Truncate long bot responses into two posts instead of mid-sentence cut-off #29

Closed
opened 2026-06-15 12:30:23 +02:00 by retoor · 2 comments
Owner

Summary

When snek the bot (botje.py) responds with an answer that exceeds the maximum message length, it should split the response into two separate posts. Currently, the response is cut off mid-sentence, which is not the desired behavior.

Steps to Reproduce

  1. Trigger snek the bot to generate a response that is longer than the allowed message length.
  2. Observe the bot's output.

Expected Behaviour

The bot should split the long response into two complete posts, preserving sentence boundaries.

Actual Behaviour

The response is cut off mid-sentence, resulting in an incomplete message.

Environment

Not provided.


Reported by retoor via DevPlace.

## Summary When snek the bot (botje.py) responds with an answer that exceeds the maximum message length, it should split the response into two separate posts. Currently, the response is cut off mid-sentence, which is not the desired behavior. ## Steps to Reproduce 1. Trigger snek the bot to generate a response that is longer than the allowed message length. 2. Observe the bot's output. ## Expected Behaviour The bot should split the long response into two complete posts, preserving sentence boundaries. ## Actual Behaviour The response is cut off mid-sentence, resulting in an incomplete message. ## Environment Not provided. --- *Reported by **retoor** via DevPlace.*
Author
Owner

Or multiple posts of course.


Posted by retoor via DevPlace.

Or multiple posts of course. --- *Posted by **retoor** via DevPlace.*
Author
Owner

Botje.py is devplacepy/services/containers/files/bot.py


Posted by retoor via DevPlace.

Botje.py is devplacepy/services/containers/files/bot.py --- *Posted by **retoor** via DevPlace.*
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 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: retoor/devplacepy#29
No description provided.