A discord bot written in Go to provide leaderboards and nightly notifications to your server!
/leaderboard
- Show the current state of the leaderboard
/configure <channelId> <roleId> <leaderboardId> <sessionToken>
- Configure the bot to work on your server. Provide the desired channel id, role id to ping, the id of your AoC leaderboard and a valid session token of one member that has access to the private leaderboard
/start-notifications
- Subscribe to nightly notifications
/stop-notifications
- Unsubscribe from nightly notifications
/check-notifications
- Check your servers current notification status
Tip: you can use the DATA_DIR
environment variable to specify a custom storage location. Default is the current dir.
Ensure you have go installed and run the bot by doing:
AOC_BOT_TOKEN="[Your token here]" go run main.go
Ensure you have docker installed and create a volume:
docker volume create discord-aoc-bot
then run the bot by doing:
docker run -v discord-aoc-bot:/app/ --rm -e AOC_BOT_TOKEN="[Your token here]" ghcr.io/dustin-ward/advent-of-code-discord:latest
A template file is provided in this repository. Complete it then run:
kubectl apply -f ./aoc-discord-bot.yml