Change what command says if you are a sub?

If I wanted to make a command that did one thing for subs and then said you have to be a sub to use this command to everyone else is that possible?

!addcom !mycommand $(eval ["owner","moderator","regular","subscriber"].includes(decodeURIComponent("$(querystring $(userlevel))"))?"Hi":"You have to be a sub to use this command")

If a subscriber is also a moderator or a regular then their userlevel will be “moderator” or “regular” instead of “subscriber”, so there is no way for the command to tell whether a moderator or regular is subbed, which is why the command considers those userlevels equivalent to “subscriber”.

Change !mycommand to the command name.
Change Hi to the sub-only message.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.