Advertisement
LoveAbleElf

snack.tcl

Jun 26th, 2017
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ####################################################
  2. #    Botsnacks v1.0                                #
  3. #  by oldsoldier <oldsoldier@gshellz.org>          #
  4. #        18 Feb 2011                               #
  5. ####################################################
  6. # Description:                                     #
  7. # botsnacks! people can feed the bot a snack       #
  8. #                                                  #
  9. ####################################################
  10. # Setup:                                           #
  11. # extract to your eggdrop/scripts directory        #
  12. # add this to your conf:                           #
  13. # source scripts/botsnack.tcl                      #
  14. ####################################################
  15. # Configuration:                                   #
  16. # via DCC:                                         #
  17. # .chanset <#channel> +bsnack    - enables         #
  18. # .chanset <#channel> -bsnack    - disables        #
  19. ####################################################
  20. # Usage:                                           #
  21. # anyone can feed the bot by typing                #
  22. # .botsnack                                        #
  23. ####################################################
  24. # define channel flag to enable quotes.
  25. setudef flag bsnack
  26. # define trigger
  27. #you can change the triggers to what you want
  28.  
  29. bind pub -|- .snack  pub_snacks
  30. #set replies array
  31. # one per line format is "blah blah blah"
  32. set randreply {
  33. "Domo arigato"
  34. "Sweeet! ^_-"
  35. "BUUUURP! MOAR MOAR!"
  36. "Slimy, yet satisfying"
  37. "Thanks!"
  38. "Merci!! ^_^"
  39. "Nice!"
  40. "Om nom nom @_@"
  41. "No thanks, I'm full"
  42. "Keep that to yourself ..."
  43. "Dammit, not again"
  44. "I'm speechless -_-"
  45. "(╯آ°â–،آ°)╯︵"
  46. "Yukk!!!"
  47. "ewwwww"
  48. "please!!"
  49. "how do you know it's my favourite :)"
  50. "you eat it"
  51. "give me some more"
  52. "feed me"
  53.  
  54. }
  55.  
  56. proc pub_snacks {nick uhost hand chan arg} {
  57.  set chan [string tolower $chan]
  58.  global randreply
  59.  set botsays [lindex $randreply [rand [llength $randreply]]]
  60.  if {[channel get $chan bsnack]} {
  61.  putchan $chan "$nick is that a $arg?!! $botsays"}
  62.  }
  63.  
  64.  
  65. putlog "botsnacks v1.0 loaded"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement