Advertisement
Yazer

Eggdrop TCL greeting script

Aug 11th, 2018
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. # ####
  2. # INFO
  3. # ####
  4. #
  5. # greetings.tcl v1.0 (Nov 01, 2007)
  6. #
  7. # ###########
  8. # DESCRIPTION
  9. # ###########
  10. #
  11. # Channel Greetings for on join users with Random Welcome Messages, Set your channel via Partyline/DCC.
  12. # Optional greeting style with your choice like; Greet users with Channel Message, Private Message or Notice.
  13. # Ideal script for those who wish to set greeetings on specific channel(s) with optional style and random message.
  14. #
  15. # ########
  16. # FEATURES
  17. # ########
  18. #
  19. # You can set your own greet messages.
  20. # Set particular channel where you want to activate greeting system and also you can deactivate in the same manner.
  21. # By default, this script greet user with on channel with any random message, even you can set greet style to wish user via MSG/Notice.
  22. # you can change the settings as per your desire which is suitable for your channel.
  23. #
  24. # ############
  25. # INSTALLATION
  26. # ############
  27. #
  28. # * First unzip zipped file i.e. greetings.zip file
  29. # * Put greetings.tcl file in your eggdrop "/scripts" folder
  30. # * Add a link at the bottom of your eggdrop's .CONF file
  31. #
  32. # source scripts/greetings.tcl
  33. #
  34. # * Save your bot's configuration
  35. # * RESTART your bot -OR- do .rehash from the partyline (DCC) to load the tcl.
  36. #
  37. # #######
  38. # UPDATES
  39. # #######
  40. #
  41. # v0.0 - 01/08/2006 - Not Released, Beta Testing =)
  42. # v1.0 - 01/11/2007 - Initial Release.
  43. #
  44. # #######
  45. # CONTACT
  46. # #######
  47. #
  48. # Any suggestions, comments, questions or bugs,
  49. # feel free to email me at:
  50. #
  51. #
  52. # fyre @ #Eggdrop & #RO-TCL
  53. # On Undernet IRC Network
  54. #
  55. # #########
  56. # DOWNLOADS
  57. # #########
  58. #
  59. # This script and other good TCL Scripts can be found on:
  60. #
  61. # * http://www.egghelp.org/
  62. # * http://www.tclscript.com/
  63. #
  64. # -REGARDS-
  65.  
  66. ########################
  67. #- Channel Activation -#
  68. ########################
  69.  
  70. # Use .chanset to activate/deactivate channel greetings on the particular channel.
  71. # Partyline/DCC : n|n .chanset
  72. # Example : .chanset #mychan1 +greetings
  73. # .chanset #mychan2 -greetings
  74.  
  75. ####################
  76. #- Greeting Style -#
  77. ####################
  78.  
  79. # Set greeting style here, options are as follows.
  80. # 0 - Channel Message
  81. # 1 - Notice
  82. # 2 - Private Message
  83. set style "0"
  84.  
  85. ###############
  86. #- Greetings -#
  87. ###############
  88.  
  89. # Here you can set any join message for your channel.
  90. set gmsg {
  91. "Welcome..."
  92. "Hello, how are you?"
  93. "Stay and Have Fun =)"
  94. "More msg..."
  95. "Here more..."
  96. "and it goes on..."
  97. "I Love You"
  98. "...............HAVE FUN!"}
  99.  
  100. ########################################################
  101. #- Don't edit below unless you know what you're doing -#
  102. ########################################################
  103.  
  104. bind join - * fyre_greet
  105. setudef flag greetings
  106.  
  107. proc fyre_greet {nick uhost hand chan args} {
  108. global gmsg style botnick
  109. if {![channel get $chan greetings]} { return 0 }
  110. if {[isbotnick $nick]} {
  111. return 0
  112. }
  113. if {$style == "0"} { putserv "PRIVMSG $chan :$nick: [fyre_msg $args]" }
  114. if {$style == "1"} { putserv "NOTICE $nick :$nick: [fyre_msg $args]" }
  115. if {$style == "2"} { putserv "PRIVMSG $nick :$nick: [fyre_msg $args]" }
  116. return 0
  117. }
  118.  
  119. proc fyre_msg {nick} {
  120. global gmsg
  121. set greetz [lindex $gmsg [rand [llength $gmsg]]]
  122. return "$greetz"
  123.  
  124. }
  125.  
  126. #######################################################
  127. putlog "LOADED: Greetings (greetings.tcl v1.0) by fyre"
  128. #######################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement