Discord bot to interface the Advent of Code private leaderboard with Discord via commands.
The current list of commands avaible in Discord
| Command | Description |
|---|---|
&leaderboard |
Show current top 20 on the leaderboard |
Er zijn een aantal env variables nodig om te kunnen werken:
DISCORD_TOKEN- Dit is het token van de discord bot.SESSION_ID- The contents of the session cookie of a signed in account with access to the leaderboardLEADERBOARD_URL- De API url van het leaderboard, te vinden op de leaderboard pagina
For this program docker is required, if you haven't already, you can install it by executing the following commands (on Linux):
curl -fsSL https://get.docker.com | sudo bash
sudo systemctl start docker
sudo systemctl enable dockerThen to ge the program running, build using the container file
sudo docker build -t aoc-bot -f Containerfile .And run it by replacing the 'xxx' and running the command:
sudo docker run -d --name aoc-bot \
-e DISCORD_TOKEN=xxx \
-e LEADERBOARD_URL=xxx \
-e SESSION_ID=xxx \
aoc-botIf needed you can remove the program by executing the following commands:
sudo docker stop aoc-bot
sudo docker rm aoc-bot