A Rust-based dice rolling bot for Discord
- Performant - Written in Rust, fast and memory efficient on every major platform
- Concise - Convenient shorthands such as
+3a
for when you don't want to type out1d20+3 advantage
- Expressive - Support for advanced queries such as
4d6r1k3*6
Use this OAuth link to invite the bot to your server, or host it yourself:
-
Obtain a bot token.
-
Download and run the bot executable from the Releases page. This should generate an empty
BOT_TOKEN.txt
file. -
Place your bot token in the
BOT_TOKEN.txt
file or in theBOT_TOKEN
environmental variable. -
Re-start the bot executable.
-
Invite your bot to your server.
- Clone the and cd to the repository
git clone https://github.com/jmoore34/dicebot.git
cd dicebot
-
Create a Heroku account and create a new app.
-
Install the Heroku CLI and run
heroku login
. -
Go into the settings. Add a new config var setting BOT_TOKEN to your bot token.
-
Deploy the app:
heroku buildpacks:set emk/rust
heroku git:remote -a "the name of your app"
git push heroku master
-
Go into
Resources
and ensure the worker dyno is enabled. -
Invite your bot to your server.