Closed wpattern closed 3 months ago
Odd that Github didn't send me a notice of the issue posting. Alternatively I could also:
dice_roll = dice_roll.lower()
Either way, I'll have a look at it when I have a chance.
Thanks!
Fixed in the latest updates.
Sometimes there are players who use the roll command with a capital d. The bot will not recognize this and do nothing.
If you were to add the following line to
DiceRoller.py
(line 29) just afterasync def roll(self, ctx, *, dice_roll: str):
then it will replace any 'D' with 'd' and will continue on happily with the logic you have implemented:dice_roll = dice_roll.replace("D", "d")
I would have submitted a pull request but did have access 😄