Specific user message command

Asked Mar 4, 2025·1 reply·Last activity 1 year 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 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.

1 reply

Hiya, try something like this:

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

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