I have a bartender script that i would like to be slightly modified.
Basically, i would like only people who are currently opped or voiced to be able to use the trigger.
It would be fantastic if you could add some scripting where i can select either channels ops or channel voiced or everybody who can use the trigger
e.g. 'users able to access trigger 1. only ops
2. ops & voices
3. Everyone
Currently the script allows anyone to use it and people have been abusing it, spamming and such. Would be a great help to us if you TCL Gurus can come to our aid. Also any modifications you see fit would be welcome too.
I thank you all in advance and please find the script below (i included only the first part and a drink)
best regards,
Achilles
Code: Select all
# Trigger
#############################################################################
set cmdz "!"
#############################################################################
bind pub - ${cmdz}booze pub_booze
proc pub_booze {nick uhost hand channel arg} {
global botnick cmdz
putquick "PRIVMSG $nick :1,13Bars Open! Heres what we got for ya:"
putquick "PRIVMSG $nick :------------------------------------------------------------------------------------------------"
putquick "PRIVMSG $nick :13,1${cmdz}Corona, ${cmdz}vodka"
putquick "PRIVMSG $nick :------------------------------------------------------------------------------------------------"
return 0
}
##############Start of the drinks#################
proc pub_corona {nick uhost hand channel arg} {
global botnick
set theNick $nick
if { [llength $arg] == 1 } {
set theNick [lindex [split $arg] 0]
}
putserv "PRIVMSG $channel :\001ACTION snaps off the top of a long-necked, ice cold Corona, slips in a slice of lime and hands it to you....enjoy mate"
return 0
}