NoxBot NoxBot Docs

Custom Commands

Build your own slash, prefix and auto-response commands without writing code. Pick a trigger, design the reply, add actions like giving a role, and set who can use it.


Create your own commands and let the bot do the work. A custom command has a trigger (how it starts), a response (what the bot says) and optional actions (extra things it does). No coding needed, and a live preview shows the reply while you build it.

Three kinds of trigger

  • Slash command appears in Discord’s slash menu, for example /rules. You can add typed arguments (text, a user, a role, a channel, a number) that members fill in.
  • Prefix command is typed with your server prefix, for example !rules. Set the prefix at the top of the page.
  • Auto response fires when a message matches your text. Match on contains, starts with, exact or a pattern.

Design the response

Pick Text for a plain reply or Embed for a rich card with title, description and color. Add more than one response and the bot picks one at random each time. You can also add link buttons.

Choose where the reply goes: as a reply, in another channel, as a direct message, or only visible to the user.

Variables

Drop these into any text field and the bot fills them in:

  • {user.mention} the member who ran the command
  • {user.name} their name
  • {server.name} the server name
  • {channel.mention} the current channel
  • {target.mention} a user the command was aimed at
  • {arg.name} the value of a slash argument you named “name”

Actions

Beyond replying, a command can give, remove or toggle a role, react to the message, or delete the trigger message. Add as many as you need.

Restrictions

Limit a command to certain roles or channels, block specific ones (a block always wins), and set a per-user cooldown so it cannot be spammed.

Build with AI

Describe what you want in plain words, for example “a /rules command that posts our rules and pings the new member”, and the assistant fills out the form for you. Review the draft and save it.

The AI assistant uses your own OpenAI key. Add one under Settings to switch it on. Everything else works without a key.
For role actions, the bot's own role must sit above the role it manages in your server's role list.
Slash commands appear on your server within seconds of saving. If a name is greyed out, it is already used by a built-in command, pick another.