# Prefix commands

Every slash command also works as a plain message, like $help. The prefix is $ by default and each server can change it.

Source: https://noxyrbot.com/docs/prefix

## How it works

A message starting with the server prefix is parsed into the same shape a slash command would produce and runs the same code, so permissions and behaviour are identical. Subcommands follow the name ($music settings), options are name:value ($sticky set text:"Read the rules" delay:300), and unnamed words fill the required options in order ($play never gonna give you up).

Channels, roles and users can be mentioned, pasted as an ID, or written by name. Yes/no options accept yes, no, on, off, true and false. An attached file fills an attachment option.

## Commands

- **/prefix view**: Show the current prefix.
- **/prefix set prefix:<text>**: Change it: 1 to 5 characters, no spaces. For example !, ?, n! or nx.
- **/prefix reset**: Back to the default $.

## Change it on the dashboard

Two dashboard pages have the prefix box: Setup, next to the other core settings, and Custom Commands, at the bottom of the left panel. Type the new prefix and save; leave it empty to go back to $. The bot uses it from the next message.

On the Custom Commands page you can also give commands new names for your server, like $store for $shop. See Custom commands.

## Differences from slash

- **Forms**: Commands that open a pop-up form (for example /quick catalog add) only work from the slash menu; the prefix version says so.
- **Private replies**: A reply that would have been visible only to you is sent to your DMs, with a note naming the server.
- **Autocomplete**: Search-as-you-type suggestions are a slash feature; the prefix version takes what you typed.

> Note: The prefix is per server and your custom bot uses the same one. If another bot already uses !, pick a different prefix so both do not answer the same message.
