- Code: Select all
bind pub -|- !help help
bind pub -|- !info info
bind pub f|f !voice voice
bind pub f|f !devoice dvoice
bind pub f|f !voiceme voiceme
thats how my binds are setup can someone help me figure out how to successfully redo this setup ?
bind pub -|- !help help
bind pub -|- !info info
bind pub f|f !voice voice
bind pub f|f !devoice dvoice
bind pub f|f !voiceme voiceme
# trigger like !op $op %op *op
set trigger "!"
# binds
bind pub n "${trigger}op" pub:op
# procs
proc pub:op {nick uhost hand chan text} {
if {![isop $::botnick $chan]} {
putserv "NOTICE $nick :I need to be opped before I can change modes"
}
else
{
pushmode $chan +o $text
putserv "NOTICE $nick :User \002$text\002 opped"
}
}
# putlog
putlog "loaded op.tcl"
bind pubm - {*} proc:commands
proc proc:commands {nick host hand chan text} {
global botnick
if {[string equal -nocase $botnick [lindex [split $text] 0]]} {
set cmd [lindex [split $text] 1]
set text [join [lrange $text 2 end]]
switch -exact -- $cmd {
"help" {
help $nick $host $hand $chan $text
}
"info" {
info $nick $host $hand $chan $text
}
"voice" {
voice $nick $host $hand $chan $text
}
"devoice" {
dvoice $nick $host $hand $chan $text
}
"voiceme" {
voiceme $nick $host $hand $chan $text
}
}
}
}
nestea wrote:No, no errors but my friend still cant use the bot ether cause I'll .+user <name> <host> and .chattr the flags I want him to have +fo but when he gives commands to it, the bot wont respond at all.
Users browsing this forum: No registered users and 0 guests