MateBot
  • Welcome to MateBot
  • Why MateBot ?
  • Getting started
  • GUIDES
    • Bots
    • Commands
    • Conversations
    • Debugging
    • Chats
    • Moderations
  • âŒ¨ī¸SCRIPTING
    • â„šī¸Introduction
    • 🚀API
    • đŸ’ŦConversations
    • 🎲Random
    • đŸ“ļHTTP
    • 🧊Resource
    • đŸŦStorage
    • 🎹Keyboard
    • đŸƒâ€â™‚ī¸Run Command
Powered by GitBook
On this page
  1. SCRIPTING

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.

PreviousKeyboard

Last updated 1 year ago

âŒ¨ī¸
đŸƒâ€â™‚ī¸