Sign inSign up

flotwig/stackoverflow-slack-bot

By flotwig

Updated almost 7 years ago

A bot that automatically posts new activity for a tag on StackOverflow to a Slack channel.

Image
0

285

flotwig/stackoverflow-slack-bot repository overview

stackoverflow-slack-bot-docker

A wrapper for stackoverflow-slack-bot to automatically post new activity for a tag on StackOverflow to a Slack channel.

Docker Hub: https://hub.docker.com/r/flotwig/stackoverflow-slack-bot

Available Env Vars

  • SLACK_API_TOKEN - (required) Your personal Slack API token for sending the channel messages.
  • SO_INTERVAL - Number of seconds to wait between requests to StackOverflow. With a slack.token, this can be as low as 15. Without it, it needs to be higher (max quota is 300/day without a token). Default: 900 (15 minutes)

Available Volumes

Sample docker run

docker run --restart=always \
  -e SO_INTERVAL=900 \
  -e SLACK_API_TOKEN=your-slack-api-token \
  -v /my/config.json:/bot/config.json \
  flotwig/stackoverflow-slack-bot:latest

Sample docker-compose.yml

  stackoverflow-slack-bot:
    image: 'flotwig/stackoverflow-slack-bot:latest'
    restart: always
    volumes:
    - /my/config.json:/bot/config.json
    environment:
    - SLACK_API_TOKEN=your-slack-api-token
    - SO_INTERVAL=900

Tag summary

Content type

Image

Digest

Size

357.1 MB

Last updated

almost 7 years ago

docker pull flotwig/stackoverflow-slack-bot