Skip to content

maartengo/adventofcode_slack_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent Of Code - Slack Bot

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.

Setup

In order to run this bot, you need to create a Slack app:

Add app to your slack workspace

  • 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.

Configure the bot

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published