The purpose of this bot is to send a message to your team's Slack when is someones birthday.
- Clone this repo to a desire location at your own computer
- Get your Incoming Webhook URL from Slack
- Save the url at
configurations.json
file and fill in the rest of the configurations as you like - Set your birthdays list using the format
FirstName LastName YY MM DD
at thebirthdays.txt
file - Create a blank app at Heroku
- Push your code to Heroku
- The bot was developed with the 2.2.6 version of ruby, any other versions may require changes.
- Run
heroku addons:create scheduler:standard
to add the Scheduler add-on to your deploy - Run
heroku addons:open scheduler
to configure the scheduler - Click Add a new job and type
rake congratulate
as the command - Set frequency to Daily and choose the Time you want to be notified
- Clone this repo to a desire location at your own server
- Get your Incoming Webhook URL from Slack
- Save the url at
configurations.json
file and fill in the rest of the configurations as you like - Set your birthdays list using the format
FirstName LastName YY MM DD
at thebirthdays.txt
file - Run
crontab -e
to edit your crontab - Add this line to the crontab and save it:
0 9 * * * cd /clone/location && /usr/local/bin/rake congratulate
(replace/clone/location
by the location where you cloned the repo)
This project was originally created by Tiago Botelho, while he was an intern at jeKnowledge.
It was later revised by Diogo Nunes from EqualExperts and João Bernardo from jeKnowledge.
This project is licensed under the terms of the MIT license.