Help with addressing $ (user)

I ask for help with setting up the addressing in the section Commands: Custom.
For example, when the user “Tom” writes the word “hello” - the bot answers “Tom, hello.”

How do I set the $ (user) function in the “alias” section?

Your alias can just be to the hello command, as it already uses $(user).

Very is the mistake?
https://gyazo.com/458d48419a0618a8ea13a95e3c03259c

Aliases are other command names, not variables. Variables only go in the message box.

can I make the insertion of the nickname of the user who writes the word “hello”?
If so, how?

Help me, Please

Not sure exactly what you want. You can do something like this (copy paste this in your chat):
!commands add hello $(touser), Hello!

Or if you want to use the Nightbot custom command page, leave alias empty, set command field as “hello”, and the message field “$(touser), Hello”.

When user Tom writes “hello”, Nightbot will respond with “Tom, Hello!”

Don’t know what you are referring to with alias in this case.

1 Like

it seems it worked out. Thanks!!!

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