Exclusive Command For Me

Asked May 30, 2021·7 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello, I need a command that is exclusively for me, that when I use it it works for me and it does not work for others and a message appears, is there something like that?

7 replies

@Woolly Monkey Heya!

This is possible, if you are owner of the stream, then set the Userlevel to Owner. Then only you can use that command.

If you are the normal user then try considering using $(eval) and $(userid) variables. Something like:

$(eval my_id = "YOUR_CHANNEL_ID"; if ( my_id === "$(userid)" ) { "YOUR_COMMAND_RESPONSE_HERE" } else { " " } )

Regards

EDIT: Let me know if it didn't work

Hey @Maple Goose Hey, I have had a problem and it is that it tells me that only I can put it but when I put the command it tells me the same thing.

Screenshot_20210531-180137-1.jpg

Hiya, $(userid) is the numeric ID of the user, try $(user) instead.

@Gerhard I've tried but it still doesn't work

Screenshot_20210531-182808-1.jpg

Ah I see, the command was almost correct, $(user) should be inside quotes:

$(eval my_id = "YOUR_CHANNEL_ID"; if ( my_id === "$(user)" ) { "YOUR_COMMAND_RESPONSE_HERE" } else { " " } )

or short:

$(eval "username" === "$(user)" ? "response" : " ")

Thanks for the help, I really appreciate it

Didn't find your answer? The community is on Discord.

Ask on Discord