What's query and what does it do?

Hi I would like to know what is query

@kevin1

The $(query) variable prints whatever the user inputs after the command. For example if you set up a command called !pie with the response “I like $(query) flavored pie.”

!addcom !pie I like $(query) flavored pie.

If you type “!pie cherry” Nightbot responds with

I like cherry flavored pie.

If you type “!pie green tea” Nightbot responds with

I like green tea flavored pie.

Also note if there is no input after the command, the $(query) variable gets replaced with a blank space. For example if you just type “!pie” Nightbot responds with

I like  flavored pie.

thanks i am trying to get my old account back KongoMaster22 and there was another number

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