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:
- Edit the channel you wish it to send messages to.
- Click Webhooks and then Create Webhook.
- 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.