Giter VIP home page Giter VIP logo

expecho / stackoverflow-to-slack-tag-tracker Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 142 KB

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

License: MIT License

JavaScript 100.00%
slack-bot slackbot slack-api slackapi azure-functions azurefunctions stackoverflow stack-overflow azure nodejs node-js

stackoverflow-to-slack-tag-tracker's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.