You need Python 3.5+ for this. The discord.py
library used in this project does not support Python2.
Create a file called creds.py
in the same directory as voting-bot.py
.
Add a line to creds.py
with your discord bot token like this:
bot_token = "YOUR_DISCORD_BOT_TOKEN_HERE"
The creds.py
file has obviously/deliberately not been pushed to GH for security reasons
(it's' been added to the .gitignore
so it won't be pushed).
To get the actual, correct bot token value, ask anyone on the Discord server, preferably theratulz or KnifeAndFawkes or anattaguy.
Create a VirtualEnvironment for this project, activate it, and install the dependencies like so on the command line:
pip install -r requirements.txt
This will install the discord.py
module into the virtual environment.
Now you should be able to run the bot like so:
$ python voting-bot.py
Logged in as:
Voting Bot
590257854452203558
-----------