[HELP] Specific response to $(touser)

Hey, good morning

I need to help with a command, again.
There is a way to nightbot give a response when someone tag any user;
But if someone tag a specific user he will give it another response?

Thanks <3

1 Like

Something like this will give a normal response and a response for a specific user

$(eval decodeURIComponent(`$(touser)`)==`specific user`?`special response`:`normal response`)
1 Like

Hello @RokettoJanpu!

Sorry to jump in, I just found that very interesting. Is it possible to have more specific users? Thanks! :heart_eyes:

1 Like

Very possible, I rewrote it to be flexible for adding more users.

$(eval a={"user1":"msg1","user2":"msg2","etc":"etc"};a[decodeURIComponent(`$(touser)`)]||`normal response`)
2 Likes

Thanks so much! Appreciate it! :heart_eyes:

1 Like

@RokettoJanpu Thanks <3

1 Like

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