Custom command variables bug

command: lvlrqst [optional text]. when someone writes it, NightBot should say: “$(ToUser) $(Query), yes he will do it.” But if someone writes: “lvlrqst 334321”, NightBot says: “334321 334321, yes he will do it”. WHY THIS???

ToUser - Nightbot Docs

$(touser) prints the first argument given to a command or, if there are no arguments, the executor of the command.

That command output looks correct to me. What would you like Nightbot to say?

If you want it to always print the executor of the command, use $(user).

Thx am_1! Really useful!

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