Nightbot User Specific Command + UserLevel Option

Hi Everyone,

I am wondering if it is possible to create a command that;

  • gives one answer if a specific user triggers the command
  • gives a separate answer if a user level tier activates the command

So far I have this, which works if I trigger the command, but if someone else triggers it nothing happens:
!addcom !test4 $(eval $(user)==chyrin?chyrin response: ||$(userlevel)==everyone?everyone response: )

I know its possible to have multiple users here, is it possible to have a user as well as a userlevel.

Thanks in advance for any help you can provide!

Hiya, use 3 ``` backticks to create code blocks.
Without testing, something like this should work:

$(eval '$(user)' == 'chyrin' ? 'chyrin response' : ('$(userlevel)' == `everyone` ? 'everyone response' : ' '))
1 Like

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