Posts one inspirational quote to slack channel every day.
Only three things to do really,
- Deploy your app to heroku.
- Create an incoming webhook with the channel of your choice (ignore the username and icon, we'll take care of it here) and save that token in environment variables as
SLACK_WEBHOOK
- In the Heroku's scheduler addon, add a job with command line
ruby bin/inspiry.rb
and schedule it Daily. I'm saying dailly because it uses the quote of the day and it doesn't make sense to post the same message every hour.
Sample message,
(optional) If you'd like to have a custom image as icon of the message, add it to env var as IMAGE_URL
. The current default is
Quote source - TheySaidSo