Add linux like options for bot commands.
Example:
!announce edit --message="Test message" --interval=10m --resume
This command args will be parsed as:
[ "edit", ["message", "Test message"], ["interval", "10m"], ["resume", true]]
For better use will be writen tools getOpts()
getOpts() retruns all options as json object structure:
{
"_args": [ "edit" ],
"message": "Test message",
"interval": "10m",
"resume": true
}
Add linux like options for bot commands.
Example:
This command args will be parsed as:
For better use will be writen tools
getOpts()getOpts() retruns all options as json object structure:
{ "_args": [ "edit" ], "message": "Test message", "interval": "10m", "resume": true }