I’m building a Discord bot using Python and discord.extmands. My bot already supports basic dice rolls using commands like !r 1d20 or !r 2d6. Now, I want to expand its functionality to allow mathematical operations with multiple dice rolls and modifiers in a single command.
Example of what I want:
Input:
!r 1d20 + 1d6 + 2d6 + 10
Output: