Skip to main content
A custom command is your own feature, built from blocks you snap together, like Scratch. It can be as small as a reply to ,hello or as big as a points game with a leaderboard, buttons and a shop.
Build them in Dashboard → Automation → Custom commands. You need Automation access in dashboard access. Members use them with your prefix (, unless you changed it), and as /name when you turn on slash.

The page

Custom commands lists your commands with their description, how many blocks they have and how often they’re used. Open one, or press New command, and the editor fills the whole window. Back returns to the list, and asks first if you have unsaved changes. The link in your address bar (…/custom-commands?command=hello) opens the same command, so you can send it to another staff member. Name a new command with lowercase letters, numbers, - and _, up to 32 characters. It can start from a template:
The custom commands list

1 New command, 2 your commands, 3 templates.

Each command has five tabs: The On switch turns the command on or off without deleting it.
The custom command editor

1 back to the list, 2 the tabs, 3 every block, 4 the canvas.

How blocks work

Scripts and start blocks

The canvas holds scripts: stacks of blocks that run top to bottom. A script starts with a start block (the rounded one on top), which says when it runs. A stack with no start block never runs, so you can keep spare blocks lying around. A command can have up to 20 scripts, so one command can hold a whole feature: the command, the buttons it posts, the functions they run and a daily timer.

Editing the canvas

  • Drag blocks from the list onto the canvas, under a start block or inside an If, Repeat or For each.
  • Drag a block by its edge to move it, and everything under it moves too.
  • Right-click a block or the canvas for duplicate, copy, paste, delete, Tidy up and full screen. Each block also has buttons to duplicate it or delete it.
  • Zoom with the buttons in the corner, or Ctrl and scroll.
  • Blocks with problems are marked. Most come with a one-click fix, like “Use {user.name}” when you typed user.name without the brackets.

Value blocks

Blocks that work something out (Do maths, Random number, Look up, Join text, True or false, Call a function and others) save their answer in a variable you name, like {var:roll}. You can also drop a value block straight into another block’s field, and its answer is used right there. This is how you put a variable into a field that won’t let you type, like a number box.

Blocks

Member blocks act on the member using it by default, or on a member argument (like target).

Conditions

If, Repeat until and True or false check a condition:

Variables

Type a variable into any text box and cure fills it in when the block runs. Click one in the Variables tab to copy it.

Your own variables

Choose which kind with Set a variable’s “this run’s”, “the server’s” or “the member’s”. A run’s variables start empty every time, including when a button is pressed, because a button press is a new run. If a button’s function needs something, save it for the member. Saved variables are shared with workflows: a workflow can count {mvar:warnings} and a command can show it. The Variables tab lists every saved value; deleting a server variable empties it, and deleting a member variable empties it for everyone. A server keeps up to 200 saved variables, each member up to 50, and each value up to 500 characters (lists 20,000).

Filled in for you

The full list is in the script reference.

Arguments and settings

Arguments

Arguments are what members type after the command: in ,give @sukii 50, @sukii and 50. Add up to 8 in Arguments & settings, or on the start block. Each argument can be Required, and an optional one can have a default. When a required one is missing or wrong, cure shows the usage instead of running, like ,give <member> <amount>.
Arguments in the Arguments and settings tab

Arguments, in Arguments & settings.

Settings

“When a message says” and “When someone reacts” scripts have their own per-member cooldown of at least 5 and 3 seconds, so a busy channel can’t set them off over and over. They never run for bots or for cure’s own commands.

Buttons and functions

Buttons are how a command keeps going after it’s used. Post buttons and Send a container add up to 5 buttons, each running a function as whoever presses it.
1

Make the function

Drag Define a function onto the canvas and name it, like toggle_pings. Put the blocks under it.
2

Post the button

In the command’s main script, add Post buttons and pick toggle_pings for a button.
3

Press it

Anyone who presses the button runs toggle_pings as themselves, so Toggle a role gives them the role.
{var:button} is the pressed button’s text. A function called with Call a function gets its inputs as {var:input1} to {var:input3}, and can Return a value. Another command’s function is command.function. Workflows can run a function too, with Run a custom command, so a schedule or another bot’s command can use everything you built here.

Testing

The Test tab walks through the blocks as if you used the command, with the arguments you type, in the channel you pick. Nothing is sent, no roles or rewards change, and no variables are saved. It lists every step it would take, what each message would say, and why it stopped. To test another script, like a function or a trigger, pick it there.

Limits

Roles must be below cure’s highest role, and a run stops when it reaches a limit.

Recipes

  1. When the command is used (,daily).
  2. Look up: Time, date, save as today.
  3. If {mvar:last_daily} equals {var:today}: Reply “Already claimed today. Come back tomorrow.” then Stop.
  4. Give or take coins: add 100.
  5. Set a variable last_daily to {var:today}, the member’s.
  6. Change a variable by streak by 1, the member’s.
  7. Reply +100 coins, {user.mention}. Streak: {mvar:streak} days.
  1. Main script, only for your Mods role: Change a list, clear entries (the server’s), then Post buttons “Enter” → function enter.
  2. Function enter: If a list contains: entries (server) has {user.id} → Reply privately “You’re already in”. Else → Change a list add {user.id} to entries (server), and Reply privately “You’re in”.
  3. A second command, ,draw, only for your Mods role: Read from a list random item from entries, save as winner, then Reply <@{var:winner}> wins.
  1. Arguments: idea, Rest of the message, required.
  2. Settings: cooldown 300 seconds.
  3. Send an embed as a post in #suggestions: title “New idea”, description {idea}, footer from {user.name}.
  4. Reply privately “Sent, thanks.”
  1. Argument pick, Text, required.
  2. Pick at random rock, paper, scissors, save as bot.
  3. If compare {pick} equals {var:bot}: Reply We both picked {var:bot}. Draw.
  4. Else If (either is true: {pick} is rock and {var:bot} is scissors, …): Reply I picked {var:bot}. You win, Change a variable by wins 1, the member’s.
  5. Else Reply I picked {var:bot}. I win.
  6. A second command ,rpstop with Leaderboard by wins shows the best players.

Custom commands or workflows?

Use a custom command when a member does something, and a workflow when something happens. They share saved variables, and a workflow can run a custom command’s function.

Troubleshooting

  • Is it On, and saved?
  • Is the member in one of its roles and channels, if you set any?
  • Is it on cooldown for them?
  • Does another command or alias already use the name? cure’s own commands win.
Move cure’s role above the role it gives or takes, in Server Settings → Roles.
A button press is a new run, so {var:…} variables from the command that posted it are empty. Save what it needs with “the member’s” or “the server’s”, and read it with {mvar:…} or {svar:…}.
Turn on Also a slash command and save. Discord can take a minute to show it, and a server has room for 25. Required arguments must come before optional ones.