Skip to content

SamsungInternet/stack-overflow-feed-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Bot – Stack Overflow Feed

Posts links in Slack for each new Stack Overflow question that match a given search query.

Forked from donmccurdy/stack-overflow-feed-bot in order to:

  • Search for query strings instead of tags.
  • Set up for hosting on Heroku.
  • Add a Postgres database, to remember the latest question found (so it works beyond Heroku restarts).

Setup

  1. Create a new Bot User for your Slack team (you'll need to be an admin). You only need a Bot Access Token.
  2. Create an empty v2.0 app for the Stack Exchange API. You only need to get an API Key; ignore the rest.
  3. Clone or download this repository.
  4. New. Create a Postgres DB with the schema from db/00-create.sql.
  5. In the project folder, create a new .env file by coping .env-example. Fill in details from the previous steps, including your Slack Access Token and Stack Overflow Key. If you're on Heroku, you can use Heroku config.
  6. Run npm install.
  7. Run npm start.

Debugging

If you're having issues, you can start the bot in debug mode by setting RUN_ONCE=true in your environment. Try using the "javascript" tag to test – it gets new questions quite frequently.

References

About

Posts links in Slack for each new Stack Overflow question with a given query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%