Sending message
This bot detects dice notation and sends the result using three methods:
-
Direct Notation:
- Example:
1d20
- The "command" message will be deleted, and the result will be sent in the same channel (and in the log).
- Example:
-
Indirect Notation:
- Example:
my message content [1d20]
- The message will be retained, and only the content within the brackets will be rolled. You will receive a response with the result, and the log will be sent in the thread, including a link to the original message.
- Example:
-
Semi-Direct Notation:
- Example:
1d20 My message
- The initially found die will be rolled, and the rest of the message will be sent in the log, considered as a comment.
- Example:
astuce
In the textual notation, it's possible to reference:
- A statistic, using
$statistic
(e.g.,$strength
). - A character, using
@character
(e.g.,@Bob
). - An opposition, by “stacking” the comparison signs: 1d100>20>10 (the last value will be treated as the opposition). As long as the player has a registered character sheet.
It is also possible to use slash-commands to throw dice, like /roll
(see here for more information)