DiscordJS Dice Bot for Dungeons and Dragons
!ping
: Pings bot!roll (dice notation)
: Roll a dice with dnd dice notation.
!roll d4
will roll a 4 sided dice 1 time.!roll 2d6
will roll a 6 sided dice 2 times.!roll 2d20 d6 d10 d20
will roll a 6 sided dice 1 time, a 10 sided dice 1 time, and a 20 sided dice 3 times.
!roll d4 d12 2d4
will result in a d4 roll, a d12 roll, then a 2d4 roll.
i.e.
!roll d4 d12 2d4
d4: (d4 roll)
d12: (d12 roll)
2d4: (2d4 roll)
!roll
will only accept a dice side value of 4
,6
,8
,10
,12
,20
, or 100
, and will only accept a dice quantity value of greater than or equal to 0
- Clone this repository
- Open a console in the
d20-bot
folder and runnpm install
- Create a
.env
file inside the folder withTOKEN=(token)
inside, replacing (token) your discord bot token. - To start, run
node d20-bot.js
ornpm test