How to make it say the users name

Asked Aug 20, 2020·1 reply·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.

Hi there, how do you get Nightbot to say a users name if someone else types the command? (if I type !add @member it would come up with "sorry coopb9" because I am the one that entered the command, is there a way of getting it to say "sorry @member" if I @ him after the command?

1 reply

Yes use the variable $(touser) with an @ before it. It would look like this “@$(touser)”