How i can add cmd with space?

when i went to add cmd like this (how are you) the didn’t work i don’t know why ?


Usually commands with spaces in the name aren’t allowed but a workaround is still possible. Copy and paste the following command setup. Replace COMMAND_RESPONSE with your command response.

!addcom -cd=5 how $(eval decodeURIComponent(`$(querystring)`).toLowerCase()==`are you`?`COMMAND_RESPONSE`:` `)

To be honest, why not have a command !hru, commands should be short, simple and easy to remember although phrases are easy, it’s faster to type !hru.

Then again, maybe you want a greeter and if someone typed ‘how are you’ you want nightbot to respond. It may not be the best way, but you can make ‘how’ the command, and just check that the next arguments is ‘are you’ before you get nightbot to greet.

I feel you do have some options in doing this, just give us more on what you’re trying to achieve.

A lot of greeters are created with ‘hi’, ‘hello’, insert other greeting words.

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