A slack bot to send anonymous feedback
- A slack bot using GO to send anonymous feedback to a feedback channel
All you need to do is send a message to the bot and the bot will send that message anonymously to a channel of your choice
- Send Feedback:
- Cancel Feedback:
- Create a feedback channel
- create a new slack app in your slack workspace link
Note: slack token is Bot User OAuth Access Token found in https://api.slack.com/apps/<app_id>/oauth?
- Add environment variables following .env
- Make sure you have a proxy pointing to your
PORT
in .env file file - Deploy the service wherever you want using the dockerfile included
- Add the url pointing to the proxy to event subscribtions -> https://api.slack.com/apps/<app_id>/event-subscriptions?
- Add the same url pointing to proxy
/confirmation
to interactive messages -> https://api.slack.com/apps/<app_id>/interactive-messages? - Send a message to bot and watch the magic happen 🎩
- Make sure you have zeit now cli installed
- Login using
now login
- Add the secrets found in now.json using
now add
- Deploy by running
now
ornow --prod
- Get your app link from Zeit Dashboard and add it to event subscription
- Add the same url
/confirmation
to interactive messages -> https://api.slack.com/apps/<app_id>/interactive-messages?
- Add a bot user to the slack app
- Add event subscription for
message.im
- Add
chat:write:bot
permission in https://api.slack.com/apps/<app_id>/oauth? - Install app
After doing the steps in previous section you should do the following for local development / testing
- Make sure you have docker version: 19.x+ installed
- Run
docker-compose up --build
in root of project - Add the link found in localhost:4040 to event subscribtions -> https://api.slack.com/apps/<app_id>/event-subscriptions?
- Add the same link
/confirmation
to interactive messages -> https://api.slack.com/apps/<app_id>/interactive-messages? - Send a message to bot and watch the magic happen 🎩
- Golang
- nlopes/slack
- ngrok
- Docker
- Docker-compose
- zeit/now