Username in Command Response

Is it possible for one user to target another user for a command response? Like say I wanted to add a !slap command.

User 1: !Slap UserA
Nightbot: UserA has been slapped!

I know it’s possible for nightbot to print the name of the user issuing the command, but it wouldn’t make much sense for a user to slap themselves.

Check out the $(touser) variable: https://docs.nightbot.tv/commands/variables/touser

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