The Haloo keyword

So me being a moderator of a chat on YouTube, added a simple HI command which is 'Hii $(touser), welcome to the stream. So it works perfectly when hi is written in the chat. But when someone writes ‘hi Haloo’ it welcomes the user as ‘Hii Haloo, welcome to the stream’, instead of the user’s account name. Is this a glitch or something purposefully added?
Adding a screenshot of the chat.

Hi, it’s because you’re using


wich takes the first argument (Haloo in your example), and if it’s missing, uses the username that called the command (That’s why it works when no extra input is given). Just change it to


and it will work.

1 Like

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