> For the complete documentation index, see [llms.txt](https://matebot-app.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matebot-app.gitbook.io/untitled/scripting/run-command.md).

# 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.

```javascript
// 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.
