How to get all values after command?

Hello,

I’m running Phantombot latest stable version. I’m trying to make a command that pass everything to an API, for example:

!command hello how are you

It would make an http request like

http://www.example.com/?param=hello how are you

Assuming you can pass anything after the command, no matter the amount of values after separated by space. I’ve been able to use:

http://www.example.com/?param=$1

But it only yields the first parameter.

Found it in old links in Github, (echo) will output everything.

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