-
Register a new application and bot through the discord developer portal
-
Invite the bot to your server via Oauth2
-
Clone the repository
-
Create a
.env
file with the following contents# .env DISCORD_TOKEN=<discord access token> DISCORD_GUILD=<server name>
-
(Optional) Create and launch a python virutal environment
Linux/Mac
python3 -m venv <virtual-environment-name> source <virtual-environment-name>/bin/activate
Windows
python3 -m venv <virtual-environment-name> set .\<virtual-environment-name>\Scripts\activate.bat
-
Install dependencies
pip3 install -r requirements.txt
-
Run the bot
python3 bot.py
Roll a D20
?roll
Generate a swear/insult
?swear
Summon a monster
?monster
Generate an encounter
?encounter
Choose someone from the party at random
?who
Show a description for an entity
?describe <entity>
Ask the 8 ball a question
?8ball
List the avaiable encounters and monsters