BotMate
Search…
πŸƒβ™‚
Run Command
Learn how to another command from a command.
Run another command from a command.
Here is an example on how to run another command from a command.
// in Random command
Bot.reply(Math.random());
​
------------------------------
​
// in Start command
runCommand("/random");
In the above example if a user runs /start the bot will actually execute /logout command. You can also pass arguments in the second parameter as a JSON object.
Last modified 1mo ago
Copy link