Macros
Chain multiple commands into reusable sequences. Create macros with up to 10 steps, output piping, and automated routines.
What are macros?
Macros let you chain multiple commands together into a single reusable sequence. Instead of running three separate commands every morning, create a macro that does all of them with one command.
You can have up to 10 macros, each with up to 10 steps. Steps can run bot commands, send messages, or conditionally stop/continue based on a value.
Creating a macro
Use the /macro create command to start a new macro.
Usage
/macro create <name>
Example
/macro create daily-routine— Creates an empty macro called "daily-routine"
Adding steps
Once you've created a macro, add steps to define what it does:
Usage
/macro add-step <macro> <type> <content>
Example
/macro add-step daily-routine command balance— Adds a step that runs the /balance command
macro. The name of the macro to add a step to.
type. The step type: command, message, or condition.
content. The command to run, message to send, or condition to evaluate.
Running a macro
Execute a macro and all its steps with:
Usage
/macro run <macro>
Example
/macro run daily-routine— Each step runs in sequence with output piping
Output piping
One of the most powerful features of macros is output piping. The output of each step is captured, and you can reference it in subsequent steps using special variables.
| Variable | Description |
|---|---|
{outputs[0]} | The raw text output from step 1 (zero-indexed) |
{outputs[1]} | The raw text output from step 2 |
{outputs[0].balance} | A structured field from step 1's output (if the command returns structured data) |
This lets you build intelligent sequences where later steps react to the results of earlier steps.
Step types
Command
Runs a bot command as if you typed it yourself. Use just the command name without the slash prefix. Example: balance, daily, harvest.
Message
Sends a text message to the current channel. Useful for logging, status updates, or combining outputs from previous steps into a summary.
Condition
Evaluates a value and decides whether to stop or continue the macro. This lets you create conditional logic, for example, only continue if a previous step was successful.
Managing macros
| Command | What It Does |
|---|---|
/macro list | View all your macros and their steps |
/macro delete <name> | Permanently delete a macro |
Example: daily routine
Here's a practical example of a macro that handles your daily tasks in one command:
Create the macro
/macro create name:daily-routineAdd steps
/macro add-step macro:daily-routine type:command content:balance
/macro add-step macro:daily-routine type:command content:harvest
/macro add-step macro:daily-routine type:command content:daily
Run it
/macro run macro:daily-routineThis checks your balance, harvests your farm, and claims your daily reward, all in one command.
Related Commands
/macromanagementCreate and manage reusable command sequences