A simple script that detects 5ngayvang when it changes, and notifies you via Slack or Email.
- Install bundler
$ gem install bundler
- Install required gems with bundler
$ bundle install --path vendor/bundle
- Set up environment variables for Slack and Email
# /etc/environment
WEBHOOK_URL="https://hooks.slack.com/services/YOURTOKEN"
TO_EMAILS="email1@example.com,email2@example.com"
- Run script
$ ruby main.rb
- You should set up a cron job to run this script every hour in order to get notified ASAP when 5ngayvang changes!
# crontab -e
0 * * * * /bin/bash -l -c 'cd /PATH/TO/5ngayvang && /PATH/TO/ruby main.rb'
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT