Guest User

Untitled

a guest
Aug 23rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.80 KB | None | 0 0
  1. bind pub - !stars pub:stars-cmd
  2. bind pub - "?? * * * * " pub:stars
  3.  
  4. proc pub:stars-cmd { nick uhost handle channel arg } {
  5.         set info "$nick I'm starsbot and follow / report @STARSambulance"
  6.         putserv "PRIVMSG $channel :$info"
  7. }
  8.  
  9. proc pub:stars { nick uhost handle channel arg } {
  10.  
  11.         set output "[exec perl /home/stars/eggdrop/scripts/starsbot.pl]"
  12.         if { $output != "0"  }  {
  13.                 set channel "#edmontonfireradio"
  14.                 set channeltest "#test666"
  15.                 putserv "PRIVMSG $channel :$output"
  16.                 putserv "PRIVMSG $channeltest :$output"
  17.                 putlog "Should have echo'd a new tweet"
  18.                 putlog "Tweet -> $output"
  19.         } else {
  20.                 putlog "Nothing to Report"
  21.         }
  22.  
  23. }
  24. putlog "Starsbot v1.0 loaded"
Add Comment
Please, Sign In to add comment