This is a bot for discord using discord.py https://github.com/Rapptz/discord.py
It supports aliases, Imgur, youtube, and basic Twitch support.
Imgur and YouTube needs to be oauthed which requires API keys and user authorization. To do so the bot has to be run in a terminal to get those setup.
- Use
virtualenv
to set up a virtual environment (optional)pip install virtualenv
virtualenv -p python3 venv
#venv can be replaced with whatever you want the virtualenv directory to be calledsource venv/bin/activate
# Activate the virtual environment. You'll need to do this every time you change shell sessions.
pip install -r requirements.txt
- If you're not using a virtual environment, you'll probably want to add the
--user
flag so the packages aren't installed at the system level.
- If you're not using a virtual environment, you'll probably want to add the
Make sure this as all done in Python 3! So replace pip with pip3 and python with python3 probably.
- Set up your
config.json
. You can look atconfig-example.json
for reference- Copy your Discord bot token into the
"discord_id"
field (you can find/make a bot here) - Copy in any other access tokens you may need
- Copy your Discord bot token into the
- Install docker and docker-compose (Google it)
- Run
docker-compose up
To run pylint on the entire project, you can run pylint main cogs
or pylint <file_name>.py
to lint a single file.