~nova/fletcher#119: 
!roll with constants and comments

Utility functionality for the !roll command that I have seen other bots do:

  • Added constant, e.g. !roll 1d20+1
  • Comment which is echoed in the bot's reply to explain what the dice roll is for (grants resistance against message disordering), e.g. !roll 1d8 # I like octahedra
Status
RESOLVED FIXED
Submitter
~unbitwise
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~nova REPORTED FIXED 3 months ago

This like, kinda works, you have to put spaces around the '#' or '+' or '-' though due to tokenizer. That's about as much as this code will handle though, more features should wait for the rewrite of this code to use a proper tokenizer/lexer/parser.

Register here or Log in to comment, or comment via email.