A Discord bot written in rust.
The bot continuously monitors aoe2lobby.com, and keeps the state of all active aoe2 lobbies.
The bot provides a slash command to query the state of a lobby. It updates the players in the lobby, in real time by editing the discord embed.
Example: /lobby lobby_id:aoe2de://0/230389981
- Bot requires following environment variables to be set:
DISCORD_TOKEN
: Discord bot tokenGUILD_IDS
: The server ids where the bot is added(comma separated). If no guilds are specified, the bot will run in global mode.
Invite: https://discord.com/api/oauth2/authorize?client_id=<CLIENT_ID>&permissions=84992&scope=applications.commands%20bot
- Build the docker image:
docker build -t lobby-is-up .
- Run the image:
docker run -e DISCORD_TOKEN -e GUILD_IDS lobby-is-up
(Assuming the environment variables are set)