databot
is a slack bot which gives us the ability to use one client for all our databases, and to easily share our data with team mambers.
databot
interaction is managed via a slash command: /query
Possible commands:
/query help
- returns general information about usage and interaction./query list
- returns list of the configured databases./query [database name] [query]
- return a result of a query execution on a certein database.
databot
is a self hosted web server, slash command based slack app, that should be installed and configured as following:
- Go to https://my.slack.com/services/new/bot
- Create A new bot
- Copy the following into the docker-compose file: CLIENT_ID, CLIENT_SECRET, VERIFICATION_TOKEN
- Follow instructions here: https://api.slack.com/slash-commands#attaching_your_custom_command_to_an_app
- If you are running the server locally, consider using localtunnel so you can maintain a stable ip\url.
For Example:
lt --local-host 192.168.99.101 --port 8765 --subdomain myfreshdomain
In this case the ip specified is of the hosting docker-machine.
As mentioned in the instructions, login into the newly created command: [your ip or url]/login
docker-compose up