This repository contains a Slack bot that was inspired by https://github.com/1grzyb1/aoc-slack. It is written in PowerShell and uses the Slack API to post messages to a Slack channel.
It posts a message to Slack each time someone gains a ⭐. It also posts a daily overview of the leaderboard.
In order to run this bot, you need to create a Slack app:
- Go to https://api.slack.com/apps and create a new app.
- Select "From scratch" and give it a name and workspace.
- Select incoming webhooks and activate it.
- Click "Add new webhook to your workspace" and select a channel to which you want to- receive messages.
docker run -e AOC_YEAR=2023 \
-e AOC_SESSION_COOKIE="" \
-e AOC_LEADERBOARD_ID="" \
-e AOC_REFRESH_DATA=true \ # enables calling the AOC API
-e AOC_REFRESH_RATE_SECONDS="900" \ # how often to call the AOC API, default is 15 minutes
-e SLACK_WEBHOOK="" \
-e SLACK_SEND_MESSAGE=true \
aoc_bot