Call an user by command


#1

My idea is to create a command that allows to punch someone.
You write: !punch user
And then it should appear like this: $(user) has punched $(the user you wrote above)

So my question is, how can i call the user I wrote to print it in the command message?


#2

Take a look at the touser variable: https://docs.nightbot.tv/commands/variables/touser


#3

Thank you so much man. It worked perfectly


#4

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