Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.50 KB | None | 0 0
  1. bind pub - !spamon seton
  2. bind pub - !spamoff setoff
  3. set spamonoff 0
  4. proc setoff { nick host hand chan text } {
  5. set spamonoff off
  6. }
  7. proc seton { nick host hand chan text } {
  8. set spamonoff on
  9. while { $spamonoff == "on" } {
  10. utimer 1 spam
  11. if { $spamonoff == "off" } {
  12. return 1
  13. }
  14. }
  15. }
  16.  
  17. proc spam { } {
  18. set spamtxt "scripts/spam.txt"
  19. set spamfile [open $spamtxt r]
  20. set spamread [split [read $spamfile] \n]
  21. close $spamfile
  22. putquick "PRIVMSG $chan :[lindex $spamread [rand [llength $spamread]]]"
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement