Skip to content

A Discord dice rolling bot designed for use in my discord community.

Notifications You must be signed in to change notification settings

xhudaman/discord-dice-roller-bot

Repository files navigation

Tymora

The Goddess of Good Fortune, otherwise known as Lady Luck. Feeling lucky? Take a roll with her dice, they only decide fate itself!

Tymora is a Discord bot for dice rolling, aptly named after the goddess from the Forgotten Realms.

Development environment setup

Prerequisites

Setup

  1. Clone the repo
# Use this command for https
git clone https://github.com/xhudaman/discord-dice-roller-bot.git

# Use this command for ssh
git clone [email protected]:xhudaman/discord-dice-roller-bot.git
  1. Navigate into the project directory and run the following to get a terminal in the container:
docker-compose run bot sh
  1. Inside the container's terminal run the following to install dependencies:
pnpm i
  1. Exit the container's shell
exit
  1. Run docker-compose up to start the dev server.

After intial setup only step 5 is required to run the dev server.

Usage

Commands

Command Description
/roll Rolls dice using standard dice rolling notation. i.e. /roll 1d20 + 2
/help Prints out the help dialog explaining what commands are available and how to use them, if necessary.
/source Prints out a link to the source code (this repo) and a list of contributing authors for the project.

Rolling

Basic Roll

To perform a basic roll use the roll command followed by the dice you want to roll.

Note: The dice rolling notation should be filled in as the dice-string option of the command. So in the following example the dice-string optin would be 1d20.

/roll 1d20

In this scenario the number 1 in 1d20 indicates the amount of dice. The d indicates that the following number is the number of faces the desired dice have. In this case the dice to be rolled are 20 sided dice as noted d20.

Note: Both the amount of dice and the number of faces on dice can be anywhere from 1-999.

Rolling with a Modifier

To roll with a modifier simply add whatever the modifier is onto the command, like so: !r 1d20 + 2. In this example after rolling a 20 sided die 2 would be added to the total. So if my roll was 10, the modifier would be added for a total of 12.

About

A Discord dice rolling bot designed for use in my discord community.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published