Is there anyways to make a public command for Enabling and Disabling a script?
Like example:
!scriptname on
!scriptname off
If this has already been covered in another topic, im sorry for my bad search.
Code: Select all
setudef flag blascript
bind PUB -|- !bla pub:blascript
proc pub:blascript {nickname hostname handle channel arguments} {
if {[string equal "on" [set type [lindex [split $arguments] 0]]]} {
channel set $channel +blascript
} elseif {[string equal "off" $type]} {
channel set $channel -blascript
} elseif {![channel get $channel blascript]} {
return 0
} else {
# Do something here
}
}