Issues with $(touser)


#1

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???


#2

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))"))

$(touser) does not work if user has a name with a space between it
#3

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


#4

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