Issues with $(touser)

I looked through all the topics and didn’t see this anywhere so I apologize if I missed it.

So I was trying to use this command on youtube: $(touser) please read the chat rules in the description below!

So in chat I type: !rules Your Name it only returns the first part of the name so anyone with a space it won’t return the full name.

!rules Your Name

Nightbot​ Your please read the chat rules in the description below!

any ideas or different variable I can use like a String or something???

You can use the variable $(query)

If you want to preserve the behavior of $(touser), where when no name is supplied, the variable defaults to the command user’s name, use this:

$(eval decodeURIComponent("$(querystring $(query))") || decodeURIComponent("$(querystring $(user))"))

Hey thank you the $(query) worked i thought I tried that one already since i tried most of them thanks m8.

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