This is a discord bot created from scratch in python using only WebSocket and REST API, as a research project on the discord API.
token: token-goes-here
prefix: prefix-goes-here
- websocket-client
- json
- requests
- yaml
- src: The source directory
- main.py: The main python file
- config.yml: Config file
- requirements.txt: List of all dependencies
- response.json: An example json response from discord
- This project does not use any third-party discord bot libraries
- The project only uses Discord API and the Discord Gateway
-
- Create a config.yml file, write the token and the prefix into it
-
- Set the path of the config.yml file in the main.py script
-
- Start the bot with
python3 main.py
- Start the bot with
- This project uses the Google Python Coding Style
- Contribution is allowed with a pull request, please make sure you follow the code style