> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solarasystems.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Automation Commands: Auto-Roles, Triggers, and Schedules

> Reference for Solara's automation commands: autorole, welcome, leave-msg, reaction-role, schedule, and trigger with usage examples and options.

Solara's automation commands let you set up self-running workflows so your server handles repetitive tasks without manual intervention.

### /autorole

Assign a role automatically to every new member that joins your server. You can configure separate roles for human members and bots. Run the setup subcommand and follow the interactive prompts.

```bash theme={null}
/autorole setup
```

<Note>Solara supports separate auto-roles for members and bots. The setup wizard will ask you to specify which type each role applies to.</Note>

***

### /welcome

Configure a welcome message that Solara sends whenever a new member joins. After running the command, enter your message text. You can use embed variables to personalize the message.

```bash theme={null}
/welcome set
```

**Supported variables:**

| Variable        | Output                  |
| --------------- | ----------------------- |
| `{user}`        | Mentions the new member |
| `{server}`      | Server name             |
| `{membercount}` | Current member count    |

<Tip>Use `{membercount}` to celebrate milestones, such as welcoming your 1000th member.</Tip>

***

### /leave-msg

Set a farewell message that Solara sends when a member leaves the server. Works the same way as `/welcome` and supports the same embed variables.

```bash theme={null}
/leave-msg set
```

***

### /reaction-role

Add a reaction role to an existing message. When a member reacts with the specified emoji, Solara assigns or removes the linked role automatically.

```bash theme={null}
/reaction-role @message-link :emoji: @role
```

<Note>You need to provide a message link, not a message ID. Right-click the message in Discord and select **Copy Message Link**.</Note>

***

### /schedule

Schedule a message to be sent in a specific channel at a set date and time. Use ISO 8601 format for the timestamp. Solara sends the message once at the scheduled time.

```bash theme={null}
/schedule #announcements 2024-12-25T10:00 Merry Christmas everyone!
```

<Tip>For recurring announcements, create multiple scheduled messages or use `/trigger` with a time-based condition.</Tip>

***

### /trigger

Create a custom auto-response that fires whenever a member's message contains a specific keyword. Solara responds in the same channel with the text you define.

```bash theme={null}
/trigger add keyword response
```

**Example:**

```bash theme={null}
/trigger add "how to report" Use /report or open a ticket in #support
```

<Note>Keyword matching is case-insensitive. If the keyword appears anywhere in a message, the trigger fires.</Note>
