Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 948 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 948 Bytes

sitewatcher

ruby script to watch sites for changes and alert you via slack; meant to be run with unix crontabs

what

get a message in a slack channel alerting you of updates to a site

how

clone this repo and add a secrets.yml file to that dir containting something like

target: http://jnmandal.github.io
slack_webhook: https://hooks.slack.com/services/foo/barbaz

where:

  • the target is the site you want to watch
  • the slack_webhook is the url to the slack incoming webhook that you set up
crontab -e

input something like:

*/1 * * * *  /bin/bash -lc 'ruby /root/to/this/script.rb'

where:

???

profit.