- Rapptz's discord.py
- Alex Flipnote's discord.py template 🍺
- Python 3.6 and up - https://www.python.org/downloads/
- git - https://git-scm.com/download/
Keep discord.py's docs saved somewhere.
You should be able to run either the
setup.sh
or thesetup.ps1
after configuring the bot on Discord You can run this on heroku. Make sure to make aconfig.py
-
Make a bot here and grab the token
-
Rename the file *config.py.example to config.py, then fill in the required spots, such as token, prefix and game
-
To install what you need, do
# Windows pip install -r requirements.txt
# bash python -m pip install -r requirements.txt
[!NOTE]: Use pip install with Administrator/sudo
-
Start the bot by having the cmd/terminal inside the bot folder and type
python index.py
-
You're done, enjoy your bot!
Q: I don't see my bot on my server!
A: Invite it by using this URL: https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot
Remember to replace CLIENT_ID with your bot client ID
Flake8 is a tool that helps you keep your code clean. Most coding softwares will have a plugin that supports this Python module so it can be integrated with your IDE. To install it, simply do pip install flake8
. If you're using python 3.7, install by doing pip install -e git+https://gitlab.com/pycqa/flake8#egg=flake8