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

# Custom Commands

> Your own command, replying with saved text or an embed.

## Overview

Create a command that replies with saved text or a saved [embed](/resources/scripting/embeds), and supports every [variable](/resources/scripting/variables).

## Commands

<CodeGroup>
  ```javascript Syntax theme={null}
  !customcommand add <name> <response> [embed_template]
  !customcommand edit <name> <response> [embed_template]
  !customcommand remove <name>
  !customcommand list
  !customcommand show <name>
  ```

  ```javascript Example theme={null}
  !customcommand add rules "Check out {channel_name} for the full rules, {user}!"
  !customcommand add socials "(unused, embed takes over)" socials-embed
  ```
</CodeGroup>

## Plain text or embed

If `embed_template` is set, it takes priority over `response`, the saved embed is sent instead of plain text. Manage embed templates on the [dashboard](https://petto.sbs/dash)'s Embeds page or with `!embed`.
