A Node.js-based Slack bot for searching Stack Overflow snippet.
There are three keys required for this to run : Slack Bot Token, Google API Key, Google CX ID.
Currently there's only one command for this bot find me <query> where query could be anything you want to search. Example :
find me laravel pluck
or you can mention the stackoverbot on channel :
@stackoverbot find me php sqrt
@stackoverbot find me css border-radius example
This should just works as any other Node.js application.
- Pull this repo
- Go to stackoverbot folder and run
npm install - Open
bot.jsand add yourSlack Bot Token,Google API KeyandGoogle CX IDinto available vars. - Run
node bot.jsor you can use any Node.js manager like PM2 :pm2 start bot.js
