Custom commands and multi-word arguments

Hi

I am trying to make a command that will react to parameter (which i can do) but where the parameter is a multi word value like a name “Slarty Bartfast” “Slarty” and “Bartfast” are split on the space, despite me enclosing them in double-quotes. Is there a way to retain the 2 words as a single string?

thanks

You can leverage $(query) to get a user’s arguments as a string

By this do you mean the $(1) syntax?

Searching NighBot docs for $(query) yeilds no results.

If $(1) is what you mean, I am already using this and encountering a lack of ability to pass multiple words as a single parameter value even when enclosed in double or single quotes
eg:
!myCommand "Slarty barfast"

gives:
$(1) = Slarty
$(2) = Bartfast

my need is to have $(1) = “Slarty Bartfast”

You can read docs for this at Query - Nightbot Docs

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