I need a command which could kind of “enable” and “disable” other commands, so I tried to do it like this:
!addcom !turn -ul=mod -a=!editcom $(2) \-ul=$(eval if($(1)==on){everyone} if($(1)==off){mod})
and when I typed "!turn off !test" it worked like it should be, but if I try to use "!turn on !test" then I get this error message:
" There was an error editing the command. Error: [body.user]Level should be equal to one of the allowed values"
But I'm not sure what i should do to make it work, because i don't fully understand yet how the eval system works and I'm still kind of new to Nightbot.
(Sorry if i have any errors in my writing)
