[HELP] Specific response to $(touser)

Asked Jul 16, 2020·5 replies·Last activity 6 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.

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

5 replies

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

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

Hello @Deft Penguin!

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

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`)

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

Ask on Discord