There’s a command I have enabled that posts a wall of text, but I only want it to be available when I manually enable/disable it to prevent spam. Is there a command I can add which allows me to turn it on or off without completely removing it every time? Preferably enable/disable toggle or live userlevel changes, or both if possible.
By editing the userlevel to owner it’ll somewhat disable it for everyone except you, so that’s what we’re gonna do, you’ll need to create two more commands for that tho’:
!addcom !COMMAND_NAMEoff -ul=owner -a=!editcom !COMMAND_NAME \-ul=owner !addcom !COMMAND_NAMEon -ul=owner -a=!editcom !COMMAND_NAME \-ul=everyone
COMMAND_NAME fields, there are 4, with the name of your command.
Seems to work, thanks!
do you know how i can say a command that I only have permission to say
If you’ve already created the command, go to your Nightbot page, to custom commands, and change the userlevel from there. You can also use editcom directly from chat; look at the top line of code on Emily’s comment and type everything from !editcom to the end of the line.
I’m not sure I understand what you’re looking for, but if you want to have a command that only you can use, and you’re also the owner of the channel, aka streamer, set the userlevel to
owner. Else, consider using the
moderator userlevel, all moderators will be able to use it, but this shouldn’t be an issue.
However, if you really really want a command that only you can use, here’s how to do it:
!addcom COMMAND_NAME $(eval `$(user)`.toLowerCase()==`YOUR_USERNAME`.toLowerCase()?`COMMAND_RESPONSE`:` `)
Is there a way for one command to change the userlevel of multiple other commands at once?
No, you’ll have to update them one at a time.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.