Get Stack Overflow answers in Slack
Powered by the Stack Exchange API
- A Heroku account
- An outgoing webhook token for your Slack team
- A Slack API token for your Slack team
-
Clone this repository locally
-
Create a new Heroku app
-
Push the repository to Heroku
-
Navigate to the settings page of the Heroku app and add the following config variables:
OUTGOING_WEBHOOK_TOKEN
The token for your outgoing webhook integration in SlackBOT_USERNAME
The name the bot will use when posting to SlackBOT_ICON
The emoji icon for the bot (I used the tophat emoji)SLACK_CHANNEL
The ID for the slack channel where Halp will liveSLACK_API_TOKEN
A personal API token with access to the slack channelSTACK_EXCHANGE_SITE
The site parameter (typicallystackoverflow
)
-
Navigate to the integrations page for your Slack team. Create an outgoing webhook, choose a trigger word (ex: "halp"), use the URL for your heroku app, and copy the webhook token to your
OUTGOING_WEBHOOK_TOKEN
config variable.