Advertisement
LoveAbleElf

jointalk.tcl

Sep 26th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. ###########################################################################
  2. #
  3. # joinTalk Tcl ( le raspunde userilor la intrare pe canal )
  4. #
  5. #Se activeaza cu .chanset +talk
  6. #
  7. # BLaCkShaDoW ProductionS
  8. ###########################################################################
  9.  
  10. #Aici sunt setate mesajele..poti adauga cate vrei :)
  11.  
  12. set messages {
  13. {"%nick% where have u been? :P"}
  14. {"%nick% nigga stop stalking me :P"}
  15. {"hello %nick% can u pet me ? :>"}
  16. {"hello %nick% welcome! :>"}
  17. {"hello %nick% you are looking good today :>"}
  18. {"%nick% welcome back nigga ;) "}
  19. {"hello %nick%, who are you stalking? :P"}
  20. {"hello %nick% Will you be here long? :>"}
  21. }
  22.  
  23.  
  24. bind join - * joinmessage
  25. setudef flag talk
  26.  
  27. proc joinmessage {nick host hand chan args} {
  28. global messages
  29. if {[channel get $chan talk]} {
  30. set message [lindex $messages [rand [llength $messages]]]
  31. set replace(%nick%) $nick
  32. foreach mes $message {
  33. set mesr [string map [array get replace] $mes]
  34. utimer 3 [list putquick "PRIVMSG $chan :$mesr"]
  35. }
  36. }
  37. }
  38.  
  39. putlog "JoinTalk by BLaCkShaDoW Loaded"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement