A Slack bot for your stackoverflow needs.
- Pulls the top answer of the most relevant question matching your query.
Head over to http://adamhe.me/slack-bots/ and click on the Add to Slack
button to add slackoverflow into your team!
- Open Slack, either browser or desktop.
- In any channel, mention the bot along with a question that you want to ask on stackoverflow, e.g
@slackoverflow how does a es6 promise work?
You can also direct message the bot directly if you don't want to clutter a channel.
- Create an app on slack.
- Obtain your api token.
- Add your api token into your environment as
SLACK_API_TOKEN
. git clone
this repository.pip install -r requirements.txt
to install all the dependencies. Note forGoogle-Search-API
, you might have to get it from the github repository ifpip install
doesn't work- Add the bot into any Slack teams (most likely one that you made for testing/developing).
- Run the bot via
python slackoverflow.py
and have fun developing!