campDevs / DiscordBot

Discord bot.
https://glitch.com/edit/#!/carnelian-crayfish
MIT License
73 stars 19 forks source link

Dice Roll Command #61

Open ghost opened 6 years ago

ghost commented 6 years ago

Whether for legit table topping or just for lols, a dice roller should be added to the bot.

It should accept a string of dice and rolls in the following format: "1d6 2d20" where the first number is the number or rolls and the second is the number of sides on the dice.

Example: +rollit 1d6 2d20

Example Output: Roll Total: 30 1d6: 1 1d20: 12 1d20: 17

pahosler commented 6 years ago

I think Glen has a dice roller in another version of the bot. Maybe he could be persuaded to port it over?

glynnw commented 6 years ago

I do. I think it was an earlier version of my JS bot too written with just discord.js.

pahosler commented 6 years ago

is there an issue with this PR? Is it ready to merge?

glynnw commented 6 years ago

The pr was closed because the basic dice roll wasn't the desired command. I've got part of the new command implemented but I haven't revisited it. I can do that soon. Perhaps this weekend and get it added. It is just waiting on me to finish a few bits of the standard on dice that @jodylecompte was describing.