A Slack app that monitors StackExchange and publishes new questions by tag to designated Slack channels.
Inspired by this.
Go here and click on Create New App
. Choose the From scratch
option and name your bot whatever you'd like. Choose your workspace, then click Create App
.
-
Click on
OAuth & Permissions
on the left sidebar. Scroll down toScopes
and addchat:write
andlinks:write
toBot Token Scopes
. -
Scroll up and click on
Install to Workspace
underOAuth Tokens for Your Workspace
. -
Click on
Socket Mode
UnderSettings
on the left sidebar. Click the toggle switch to enable Socket Mode.
git clone https://github.com/fluffypill0w/stackexchange-monitor.git
Make sure you are in the cloned folder and deploy the app to Heroku:
cd stackexchange-monitor && heroku create && git push heroku main
You'll need to set all of the variables listed in .env.sample
as config variables in Heroku:
heroku config:set SLACK_SIGNING_SECRET=XXX SLACK_BOT_TOKEN=XXX SLACK_APP_TOKEN=XXX SLACK_CHANNEL_ID=XXX PORT=XXX STACKEXCHANGE_TAG=XXX STACKEXCHANGE=XXX
npm install
npm run build
npm run start