My discord bot to join and spectate aoe2 matches from a server I am in
- Python 99.6%
- Dockerfile 0.4%
| assets | ||
| utils | ||
| .dockerignore | ||
| .gitignore | ||
| database_handler.py | ||
| discord_bot.py | ||
| Dockerfile | ||
| lobby_handler.py | ||
| main.py | ||
| match_handler.py | ||
| png_renderer.py | ||
| readme.org | ||
| requirements.txt | ||
| schema.sql | ||
| websocket_handler.py | ||
Discord Permissions Required
The following permissions are required in the developers portal
- View Channels
- Send Messages
- Attach Files
Map Icons
The map icons are found at resources/_common/wpfg/resources/mapicons
Todo List
- Store bot logs and errors in a file so that they can survive restarts. Also store bot crashes in there. Then add a environment variable to select logging priority (info, error etc)
- If a guild is removed mid-game, any on-going matches related to that guild will not be removed and might crash the bot when try to update those messages.
- Update the schema to use ON_DELETE CASCADE on guild_id foreign key.
- Add support for names in language other than English. Chinese is the first one to add support for.
- Add CI/CD for the bot.
- When I send a message to multiple servers, I have to delete it from all. Some of them might not get deleted for some reason. So I need to add a retry option for this. Or may be just mark a match data to be deleted and run a delete routine that will periodically revisit if a match data needs deletion.