ThanksBot
The slack bot to add thanks in workspaces
Sometimes you just want to thank someone for something quickly to let them know you appreciate something they did. ThanksBot enables this.
Commands
ThanksBot adds two new commands to your workspace:
/thanks
Send a thanks to someone else in the workspace. The syntax is is /thanks <your message>
. Everyone mentioned in the thanks will be sent a message from ThanksBot with the reason.
Running /thanks
without any other text will return the introduction text.
/mythanks
Show all the thanks that you've received. It by default returns all the thanks you've received in the past week but will accept parameters: day
, week
, month
, quarter
, alltime
Building
Tl;Dr
# Build just thanks_bot images
docker build -t thanks_bot:latest thanks_bot/
# Build the test infra with the postgres backend
docker-compose up
I provide a docker-compose file that spins up test infra which is a good way to test it with the deployment settings outlined below. For production the Dockerfile
inside thanks_bot
builds an image based on scratch in a three stage build process that contains almost nothing except thanks_bot.
Deployment
You will need to create an app inside your workplace (I called mine Thanks). You then will have to create two slack commands (for consistency I recommend them being called /thanks
and /mythanks
).
Both should have escape enabled (otherwise the backend won't be able to find who is thanking whom):
You'll also need to change the domain to where ever you host your thanks_bot server.
Thanks for stopping by!