Skip to content
/ sob Public

📥 A slack bot that tracks tags from Stack Overflow.

License

Notifications You must be signed in to change notification settings

devhid/sob

Repository files navigation

stack-overflow-bot (sob)

A slack bot that tracks tags from Stack Overflow.


Add to Slack

Overview

When working with certain technologies or software, you might run into a problem that you need help solving. Instead of asking someone in a slack channel for help, you can post your question on Stack Overflow with specific tags and the channel will be notified of your question.

The bot aims to encourage users to ask questions to Stack Overflow instead of the slack chat, reduce the clutter inside a slack channel which is dedicated for team communications, and prevent duplicate questions from being asked.

Built With

Setup

  1. Clone this repository into your webserver and enter the project directory.
git clone https://github.com/devhid/sob.git
cd sob
  1. Install dependencies.
npm install
  1. Edit auth_setup.sh with your favorite text editor.
# URI for your server where the application is being run on. (Example: http://localhost:3000)
export SOB_WEBSERVER=''

# [Important] Since this app is not being distributed (yet?), you will need to create a Slack App
# and provide your own Client ID, Client Secret, and State (Signing Secret).
# [Note] The Redirect URI should be the value for SOB_WEBSERVER with '/slack/auth' at the end.

# Follow the documentation here: https://api.slack.com/slack-apps
export SLACK_CLIENT_ID=''
export SLACK_CLIENT_SECRET=''
export SLACK_REDIRECT_URI=`$SOB_WEBSERVER/slack/auth`
export SLACK_STATE=''

# [Important] Since this app is not being distributed (yet?), you will need to create a Stack App
# and provide your own API Key and Access Token.

# Create your application here: https://stackapps.com/apps/oauth/register
export SO_API_KEY=''
export SO_ACCESS_TOKEN=''
  1. Set the read/write permissions for auth_setup.sh and run.sh.
chmod 755 auth_setup.sh run.sh
  1. Execute run.sh. This will execute auth.sh and start the server.
source run.sh

Features

  • Specify multiple tags per channel.
  • Mention someone once a question is posted.

To-do:

  • Tag a specific person in slack once a question is posted.

About

📥 A slack bot that tracks tags from Stack Overflow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published