Skip to content

johnhenriksson/driftbot

Repository files navigation

driftbot

A slackbot helping you with daily sysadmin tasks such as nslookup and blackklist checks of domains/IP's. Based on slack-bot-server.

What is slack-bot-server?

A Grape API serving a Slack Ruby Bot to multiple teams. This is a boilerplate that combines a web server, a RESTful API and multiple instances of slack-ruby-bot. It integrates with the Slack Platform API.

Run Your Own

Install MongoDB, required to store teams.

Create a New Application on Slack.

Follow the instructions, note the app's client ID and secret, give the bot a default name, etc. The redirect URL should be the location of your app, for testing purposes use http://localhost:9292. For a local deployment create a .env file and add SLACK_CLIENT_ID=... and SLACK_CLIENT_SECRET=... in it. Run bundle install and foreman start. Navigate to localhost:5000. Register using the Slack button.

If you deploy to Heroku set SLACK_CLIENT_ID and SLACK_CLIENT_SECRET via heroku config:add SLACK_CLIENT_ID=... SLACK_CLIENT_SECRET=....

If you would like the command lookup to work you need to add MXTOOLBOX_API_KEY variable to the .env file. You'll find the key on thier website.

Other examples Using Slack Bot Server

Copyright & License

driftbot Copyright John Henriksson, 2016

slack-bot-server Copyright Daniel Doubrovkine, 2015-2016

MIT License

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published