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

# !addcmd

Creates a new custom command for the channel.

This command is only available to **Broadcasters** and **Moderators**.

#### Parameters

This command takes **two** *required* parameters:

1. **Command name** - The name of the command to create
2. **Response** - The response text for the command

#### Flags

This command supports the following optional flags:

* `--enable`: Enable the command (default: enabled)
* `--disable`: Disable the command
* `-g, --global <seconds>`: Set global cooldown in seconds (default: 5)
* `-u, --user <seconds>`: Set user cooldown in seconds (default: 15)
* `-n, --name <name>`: Set command name
* `-t, --type <type>`: Set response type: `reply`, `say`, `whisper`, or `mention` (default: say)
* `--addalias <alias>`: Add an alias for the command (can be used multiple times)
* `--removealias <alias>`: Remove an alias from the command (can be used multiple times)

#### Example Output

* `!addcmd hello Welcome to my stream!`

  ```
  Successfully added command "!hello"
  ```

#### Error Output

* In case insufficient parameters are provided, returns the following:

  ```
  Usage: !addcmd <command> <response>
  ```


## Related topics

- [Default Commands](/docs/commands/default/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.