Skip to content

Expecho/StackOverflow-To-Slack-Tag-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackOverflow -> Slack Tag Tracker

Azure Function that acts as a bot which creates notifications in a Slack channel about StackOverflow activity based on the question tags.

Overview

Getting up & running

  1. Create a new timer based Azure Function (for javascript). For instructions see the docs. I recommend a timer that will fire every 15 minutes, due to the api request limitations of Stack Overflow.
  2. Install the required node.js packages. Instructions can be found here. The package.json file is in this repository.
  3. Replace the default javascript code with the code in this repository. Then change the configuration to your liking*
  • A Slack token can be generated here. A StackOverflow token can be created here.

Configuration

The configuration is defined using environment variables:

    slackbot_username: "StackOverflow Tag Tracker",
    slackbot_icon_emoji: ':incoming_envelope:',
    slackbot_token: '<token>',
    slackbot_channel: '<channel>',
    slackbot_workspace: '<workspace>',
    so_api_key: '<api key>',
    so_tracked_tags: 'azure;asp.net-web-api|powerbi',

slackbot_username
The bot account name

slackbot_icon_emoji
The Slack bot emoji icon (can be blank)

slackbot_token
The Slack token, Create a Slack App and get a token. see the docs

slackbot_channel
The name or the id of the channel that the message are posted to (for example: '#stackoverflow')

slackbot_workspace
The name of the slack workspace

so_api_key
The StackOverflow api key, see the docs

so_tracked_tags
The stack overflow tags to track. Tag sets are seperated with the '|' character, tags are seperated with the ';' character

Examples:

'azure|javascript': get notified about activities of questions tagged with either azure or javascript

'azure;javascript': get notified about activities of questions tagged with azure and javascript

'azure|javascript;reactjs': get notified about activities of questions tagged with azure or javascript and reactjs

About

Azure Function that acts as a bot which creates notifications in a Slack channel about StackOverflow activity based on the question tags

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published