public
Description: matzbot is nice so we are nice
Homepage:
Clone URL: git://github.com/defunkt/matzbot.git
matzbot / cron.rb
100755 7 lines (5 sloc) 0.192 kb
1
2
3
4
5
6
7
#!/usr/bin/env ruby
 
matzdir = "~/matzbot/"
 
if `ps -A | grep \`cat #{matzdir}matzbot.pid\` | wc`.to_i.zero?
  system("cd #{matzdir}; rm matzbot.pid; ./launch.rb -d -w `cat the_password`")
end