I'm having some trouble trying to enable and disable remote events on the fly, the code I'm using is straight out of a tutorial but doesn't seem to work, here's a basic form of what I have:

on 1:TEXT:!boton:#:{
if ($nick isop #) { enable mybot }
}

on 1:TEXT:!botoff:#:{
if ($nick isop #) { disable mybot }
}

#mybot on
on 1:TEXT:!thebot:#:{
msg $nick w3rd
}
#mybot end

#mybot on makes the event enabled by default, and switching this to #mybot off indeed disables the event. However the two commands enable mybot and disable mybot produce the message "/enable: no such group(s)" and "/disable: no such group(s)" respectively in my status window. The guide says to omit the #, obviously I'm doing something wrong can someone see what I've missed?

Thanks!!