/AdventOfCodeDiscord

Discord bot with Advent Of Code integration. Displays scores and time deltas for your local leaderboards

Primary LanguageGo

Note

The pull request related to this repository has been merged so it is now archived. If you want to make any changes to the code, please do so on the original repository

⭐⭐🎄 Advent Of Code Discord Bot 🎄⭐⭐

A discord bot written in Go to provide leaderboards and nightly notifications to your server!

Usage

General

/leaderboard - Show the current state of the leaderboard

Admin

/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

Deployment

Tip: you can use the DATA_DIR environment variable to specify a custom storage location. Default is the current dir.

Using Golang

Ensure you have go installed and run the bot by doing:

AOC_BOT_TOKEN="[Your token here]" go run main.go

Using Docker

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

Using kubernetes

A template file is provided in this repository. Complete it then run:

kubectl apply -f ./aoc-discord-bot.yml