Skip to content

Python 3 Dice roller for D&D games during COVID-19

License

Notifications You must be signed in to change notification settings

sn0wbits/dice_roller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roller-Bot

For those playing D&D while in quarentine or simply while alone.

This is a dice roller for when you gotta play remotely and still wanna show your rolls off, it is connected to discord using a webhook. This is done so that anyone can easily add this to their discord without thinking of any of the usual bot things, simply get the webhook and your done.

You can still use it without connecting to discord and simply share the window if wanted, or simply just use it locally as it also prints everything to the terminal.

To get the webhook from discord you need to:

  1. Edit the channel you wish it to send messages to.
  2. Click Webhooks and then Create Webhook.
  3. Copy the URL and get the ID and token from it.

The layout of the link is as follows: https://discordapp.com/api/webhooks/ID/TOKEN

Installation of requirements:

pip3 install discord.py
pip3 install requests

If you wish to not download the requirements then simply comment out / remove the imports and the call to the send_disc_msg() function at line 162.

USAGE: python3 dice_roller.py [optional]name By adding a name as an argument you will bypass the startup screen without having to edit the code.

About

Python 3 Dice roller for D&D games during COVID-19

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages