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).
- Create a new Bot User for your Slack team (you'll need to be an admin). You only need a Bot Access Token.
- Create an empty v2.0 app for the Stack Exchange API. You only need to get an API Key; ignore the rest.
- Clone or download this repository.
- New. Create a Postgres DB with the schema from
db/00-create.sql. - In the project folder, create a new
.envfile 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. - Run
npm install. - Run
npm start.
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.