My discord bot to join and spectate aoe2 matches from a server I am in
  • Python 99.6%
  • Dockerfile 0.4%
Find a file
2026-11-05 22:03:47 +05:00
assets Forgot to add the pilgrims map file 2026-10-22 09:47:31 +05:00
utils Initial queue handling implemented. Still needs a lot of work to be functional 2026-11-02 15:34:12 +05:00
.dockerignore Add dockerfile and update code to accept more environment variables 2026-08-21 20:30:39 +05:00
.gitignore Updated gitignore for emacs backup files 2026-09-19 19:17:35 +05:00
database_handler.py Remove server and related data from database when bot gets removed from server 2026-09-23 16:46:40 +05:00
discord_bot.py Initial queue handling implemented. Still needs a lot of work to be functional 2026-11-02 15:34:12 +05:00
Dockerfile Update docker python version and hard DB_FILE_PATH in docker container 2026-08-21 21:18:47 +05:00
lobby_handler.py Initial queue handling implemented. Still needs a lot of work to be functional 2026-11-02 15:34:12 +05:00
main.py The queued matches are saved successfully 2026-11-04 02:31:05 +05:00
match_handler.py Update match storing logic according to queueing data 2026-11-05 22:03:47 +05:00
png_renderer.py Update match storing logic according to queueing data 2026-11-05 22:03:47 +05:00
readme.org Ass a new todo task 2026-11-02 15:35:45 +05:00
requirements.txt Start working on replacing message embed with an image 2026-09-08 00:22:06 +05:00
schema.sql Update the bot to server multiple discord servers 2026-08-21 03:11:44 +05:00
websocket_handler.py Make WebSocketHandler more generic by passing a function 2026-08-26 07:32:05 +05:00

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.