Heya all
Is there a way to get the command name that was used, as a variable ?
A friend has an API that has 2 input variables and wants to return a “Correct Usage” message if parameters do not make sense for instance. The thing is that the command name people might use on their own stream is variable.
l.e. If someone has the command set as being !getstats, the API would reply with:
Please try again - Correct usage is “!getstats [username] [servername]”
I know it could be done manually with the url e.g.
?command=%21getstats
but that is messy.
It would be much neater to be able to do something like:
?command=$(commandused)
Many thanks,
Zoe