Specific user message command

Hey everyone,

I need to know if it’s possible to have a !hello command which displays a specific message to a specific user and a normal message to everybody else.

I’ve seen this code which gets close to what I need
$(eval u = '$(user)'; $(urlfetch json https://pastebin.com/raw/XXXXXXXX))

but the issue is that nightbot does not mention the user while responding when I am using this code.

could somebody please help me modify this code so that nightbot mentions them while responding or maybe help me write a new code for this specific case please.

Hiya, try something like this:

@$(touser) $(eval '$(touser)' == 'xgerhard' ? 'xgerhards message' : 'other message')

Replace xgerhard with the user you want the specific message for.

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