Bot attempts to execute command if it finds a ! in the message #46

Closed
opened 2020-11-12 20:15:52 +00:00 by projectmoon · 0 comments
Owner

This was caused by a fix to deal with empty newlines. The bot used to execute commands only if the line started with a !. But that was removed. We need to add it back, but a bit more cleanly:

  • Trim input before splitting.
  • Split input by newline.
  • Any line that starts with a ! is considered a command.
This was caused by a fix to deal with empty newlines. The bot used to execute commands only if the line started with a `!`. But that was removed. We need to add it back, but a bit more cleanly: * Trim input before splitting. * Split input by newline. * Any line that starts with a `!` is considered a command.
Sign in to join this conversation.
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: projectmoon/tenebrous-dicebot#46
No description provided.