Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. bind pub - himbot msg:reply
  2. bind pub - himbot msg:insult
  3.  
  4. proc msg:reply {nick host hand chan arg} {
  5. global owner
  6. global botnick
  7. set args "$arg"
  8.  
  9. if {$arg == "hello"} {
  10. putserv "PRIVMSG $chan :Hello you!"
  11. }
  12. }
  13.  
  14. proc msg:reply {nick host hand chan arg} {
  15. set args "$arg"
  16.  
  17. package require http
  18. set url "http://www.randominsults.com"
  19. set page [http::data [http::geturl $url]]
  20. regexp {<i>(./?)</i>} $page a insult
  21. if {$arg == "insult"} {
  22. putserv "PRIVMSG $chan :$insult"
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement