Do you need more help? Visit my server here: https://discord.gg/DpxkY3x
- Python 3.6 and up - https://www.python.org/downloads/
- git - https://git-scm.com/download/
Keep this saved somewhere, as this is the docs to discord.py@rewrite. All you need to know about the library is defined inside here, even code that I don't use in this example is here.
- Flake8 - Python Module (Keeps your code clean)
- If you're using python 3.7, install by doing
pip install -e git+https://gitlab.com/pycqa/flake8#egg=flake8
- PM2 - NodeJS Module (Keeps the bot alive with pm2.json file)
- Requires NodeJS - https://nodejs.org/en/download/
-
Make a bot here and grab the token
-
Rename the file config.json.example to config.json, then fill in the required spots, such as token, prefix and game
-
To install what you need, do pip install -r requirements.txt
(If that doesn't work, do 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
Q: There aren't that many commands here...
A: Yes, I will only provide a few commands to get you started, maybe adding more later.
Q: Why the beer with the discord logo?
A: Because the framework is made so simple that even a drunk guy can set it up.