Dyno

Custom Commands

The Custom Commands module allows you to create your very own Dyno commands! Your commands can also run regular Dyno commands, as well as use advanced variables.

Overview

The Custom Commands module allows you to create your very own Dyno commands! Your commands can also run regular Dyno commands, as well as use advanced variables (explained below).

You can use these to perform special actions default commands can't accomplish, or let certain people use certain types of commands in certain places - or both!

!PREMIUM
Non-Premium servers can have a max of 25 custom commands.

Command Showcase

Tip

Check out some cool commands curated by our Staff Team here!

How to add a Custom Command

  1. Head over to your account and select your server.
  2. Click on the Modules tab.
  3. Ensure that the Custom Commands module is enabled.
  4. Click the Settings button underneath the Custom Commands module.
  5. Click the Add Command button.
  6. Click inside the Name box and type the name of your command.
  7. The Description box (optional) is where you can add a description of your command.
  8. The Command box is where you type your command response. You can customize this in thousands of ways.
  9. You then have multiple different options/permissions which you can set up. Once all of that is done, click the Add Command button at the bottom of the pop-up!

cc_newcommand


Tip

First time using custom commands? Check out these below videos made by one of our community members!

Building your Command

Custom Commands can seem overwhelming at first, but this guide is designed to help you understand how the command system works, so you can begin to make your own.

To begin, let's take a look at what your command field should look like:

Your First CC!

The Command field of your Custon Command (CC) contains the text and variables that tell Dyno what to do when someone calls the command. Any plain text in your command field that is not a variable will be sent as a message when you call your command. Let's create a command to send a simple message.

Name: myfirstcc
Command:

Hello world!

Usage: ?myfirstcc

Your Custom Command page should look like this:

cc_firstweb.png

Dyno should respond with:

cc_first.png

Congrats! You just created your first custom command!

In all commands, the Name and Command fields are required. The Description field is optional; If you want to add a short description to help you remember what the command does, you may add it here. Any Usage fields given in examples here do not need to be added into the command and are only for explaining how the command should be used.

Using Variables

You can use "variables" to have Dyno do things such as send information about a user, server, channel, or role, send the time/date, and perform advanced functions. Most variables start with an opening brace { and end with a closing brace }.

Let's explore some basic "text" variables you can use in your commands. These variables do not need to be on their own line and can be integrated with your text. The first variable we see when looking at the Variable Reference is {user}. This variable mentions whoever calls the command. We can use this to have Dyno say hi to us.

Name: hidyno
Description: Make Dyno say hi
Command:

Hi {user}!

Usage: ?hidyno
Response:
cc_hi.png

Let's look at another variable, {@user}. This variable is different from {user} in that it's used to mention a specific user. It will mention the same person every time the command is run rather than changing based on who runs the command. To use the variable, we must replace user with the name of the person we want to mention. In this example, we'll make Dyno say hi to Gin, one of the Dyno developers.

Name: higin
Description: Say hi to Gin
Command:

Hi {@Gin}!

Usage: ?higin
Response:
cc_higin.png

Let's take a look at one last basic variable. {everyone}. This will have Dyno ping @everyone in your server. However, the Disable @everyone, @here and role pings automatically prevents Dyno from pinging roles in Custom Commands to prevent abuse. To have him ping @everyone in our command, we must turn it off.

cc_noeveryone.png

Now, we can fill out our command:

Name: hieveryone
Description: Say hi to @everyone
Command:

Hi {everyone}!

Usage: ?hieveryone
Response:
cc_everyone.png

For explanations of all Text Variables, click here. We'll move onto some additional text variables now.

Using Advanced Variables

Now, we'll go through some of the more advanced options Custom Commands offer.

All of these variables (except for Arguments) should be placed on their own line. Otherwise, your command may not work.


Delete

{delete} - This variable deletes the ?command message. Here's an example command using {delete}:

Name: giveawayreminder
Description: Remind users to enter the giveaway
Command:

{delete}
Remember to enter the giveaway for **5x Pro Keyboards** in {#giveaways} or at <https://dyno.gg/giveaway/49443b95>!

Usage: ?giveawayreminder
Response:
cc_giveawayreminder.png

You can utilize the Delete Command option in the Options menu in place of this variable, as shown below. Make sure you use either the {delete} variable OR the Delete Command option.

cc_delete

Silent

{silent} - This variable prevents the response from any {!command} variables from sending. We'll learn more about {!command} variables next, but here is an example command using {silent}:

Name: member
Description: Assigns the user the Member role
Command:

{silent}
{!role {user} +Member}
{user}, you were assigned the Member role.

Usage: ?member
Response:
cc_member.png

You can utilize the Silent Command option in the Options menu in place of this variable, as shown below. Make sure you use either the {silent} variable OR the Silent Command option.

cc_silent

Command

{!command} - This variable allows you to use any standard Dyno command in your CC. To use it, replace command with the name of the command you want to use, and if the command requires any arguments (additional information sent after the command, like a user), add those in just like they would appear in the normal command. Here's an example using the ?afk command:

The normal afk syntax is ?afk [status], so the text after !afk in our variable represents the status Dyno will set for the user's AFK

Name: lunch
Description: Show yourself away for lunch
Command:

{!afk Out for lunch. I'll respond to you when I get back.}

Usage: ?lunch
Response: Dyno will respond with the default reponse for the ?afk command since we used it in our CC
cc_lunch.png

Each custom command has a limit of 3 of each bot command. For example, you can only use the rank command 3 times, the cat command 3 times, etc.

Make sure to always use ! with this variable. If your prefix is different than !, do not change the ! at the start of this variable to your prefix, or it won't work.


Require

{require:role} - This variable sets the required role or Dyno permission level to use the command. If a user does not have the role or permission, Dyno will not execute the command.

Dyno Permissions:

{require}s work on an "OR" basis. The command excerpt below would require EITHER the Trial Mod role OR a Dyno Moderator Role.

{require:Trial Mod}
{require:serverMod}

You can also use the role ID instead, like so:

{require:355054563931324420}

{require:#channel} - This variable sets a channel the command must be used in. They work on an "OR" basis as well.

Example:

{require:#general}

Channel names with emojis or other special characters break variables. If your channel name has an emote or special character, use the Allowed Channels option described below.


You can utilize the Allowed Roles and Allowed Channels options in the Permissions menu in place of these variables, as shown below. Make sure that you use either {require:} variables OR the Allowed Roles/Channels option.

cc_allowed.png

Keep in mind that users with a Manager Role and Administrators always override any Allowed/Ignored Roles/Channels.

Not

{not:role} - This variable sets a role that cannot use the command. If a user has this role, Dyno will not execute the command.

Examples:

{not:British}
{not:473949538084716554}

{not:#channel} - This variable sets a channel that the command cannot be used in.

Example:

{not:#general}

Channel names with emojis or other special characters break variables. If your channel name has an emote or special character, use the Ignored Channels option described below.


You can also use the Ignored Roles and Ignored Channels options in the Permissions menu instead of these variables. Make sure that you use either {not:} variables OR the Disabled Roles/Channels option.

cc_ignored.png

Keep in mind that users with a Manager Role and Administrators always override any Allowed/Ignored Roles/Channels.

Respond

{respond:#channel} - This variable sets the channel that all command output is sent to. This includes any {!command} responses as well as custom text and embeds.

Example:

{respond:#staff-chat}

Channel names with emojis or other special characters break variables. If your channel name has an emote or special character, use the Response Channel option described below.

You can also use the Response Channel option in the Permissions menu instead of this variable, as shown below. Make sure you use either the {respond:} variable OR the Response Channel option.

cc_respond.png

DM

{dm} - This variable DMs all command output to the user who called the command.

{dm:user} - This variable DMs all command output to the specified user. You must replace user with their username, like in this example:

Name: ?otter
Description: DMs bean an otter gif
Command:

{delete}
{dm:bean}
From {user}:
https://tenor.com/view/otter-cute-gif-11451324

You can also use the DM Response option in the Options menu instead of the {dm} variable, as shown below. However, if you want Dyno to DM a user other than the user who ran the command, you must use {dm:user}.

cc_dm.png

Choose & Choice

{choose:option1;option2;option3} - This variable randomly chooses an item from the list provided.

{choice} - This variable outputs the chosen item from {choose}.

Here's an example modified from a command on our Showcase Page:

Name: 8ball
Description: An emulation of the magic 8-ball
Command:

{choose:It is certain;As I see it, yes;Most likely;Outlook good;Yes;Ask again later;Better not tell you now;Concentrate and ask again;Don't count on it;My sources say no;Outlook not so good;}
{choice}

Usage: ?8ball [question]
Response:
cc_8ball.png

You can have multiple {choose}s and {choice}s. Just add a number after choose and choice in your command. For example:

Name: sundae
Description: Build your own ice cream sundae
Command:

{choose:vanilla;chocolate;cookies and cream;caramel}
{choose1:chocolate chips;cookie dough;gummy worms;brownies}
{choose2:whipped cream, and a cherry;whipped cream, and chocolate syrup;whipped cream, and caramel sauce;whipped cream, and sprinkles}
You chose {choice} ice cream with {choice1}, {choice2}!

Usage: ?sundae
Response:
cc_sundae.png

Arguments/$N

You can use words provided after the command name ("arguments") by using the $N variable. To use this, you must replace N with the number of the word you want to use ($1 for the first word after the command, $2 for the second, and so on). If you want to use an entire phrase, you can add a + to the variable. For example: $1+ will return the first word and everything after it (so all arguments provided), $2+ will take the second word and everything after it, and so on.

Example:

Name: slap
Description: Slap a user with an object
Command:

You slapped $1 with $2+

Usage: ?slap [user] [item]
Response:
cc_slap.png

$1 represents the first argument (Joe) in the command.
$2+ represents all the arguments after the first one in the command call (a fish) since Joe is the first argument)

Do not use any $N variable in the Name of your command. They can only be used in the Command field, Embeds, and Additional Responses

The diagram below is a visual representation of how argument variables work in custom commands.

cc_args.png

Arguments in Other Variables

You can also use $N variables inside other variables. Here are a couple examples

When using $N with text variables, you do not need to use {} braces.

Example 1:

Name: userid
Description: Get a user's ID
Command:

$1.user.name's ID is `$1.user.id`.

Usage: ?userid [user]
Response:
cc_userid.png

This command uses $1 in combination with the {user.name} and {user.id} variables.

Example 2:

Name: cmute
Description: Mute and Softban a user simultaneously
Command:

{delete}
{silent}
{require:serverMod}
{!mute $1+}
{!softban $1 $3+}
<:dynoSuccess:696561641227288639> ***$1.user.name was muted***

Usage: ?cmute [user] [time] [reason]
Response:
cc_cmute.png

This command uses multiple $N variables in combination with multiple {!command} variables. The {!mute $1+} mutes the user. Since $1+ takes all of the arguments after the command, the user, time, and reason are inputted into the command. The {!softban $1 $3+} softbans the user to delete their messages. Since the ?softban command does not take a time, $2 was removed from the command, which leaves us with $1 $3+.

This example contains a lot of variables. When working with multiple variables, make sure you follow the Command Hierarchy.

Advanced Options

cc_options

Cooldown

This is the time, in seconds, that a user must wait until they can use the same command again. The maximum cooldown is 10 minutes (600 seconds).

Delete After

If you set a time here, Dyno will automatically delete the command output after the set time. It will not delete the output from any {!command} variables.

Required Arguments

This is the number of arguments (words after the command name) that must be present for the command to execute. For more information on arguments, click here.

Embed Response

You may opt to have your response send in an embed instead/in addition to a plain text message. Simply click the Add/Edit Embed button directly under the command field and set your response there.

If you do not have anything to add to the Command field, you must add a space there. Otherwise, you will not be able to save the command.

Additional Info:

  • All TEXT variables can be used in embeds. You must add any variables that perform an action (e.g. {delete}, {require:}, and {!command} variables) to the Command field.
  • For more information on configuring embeds, visit this page.

cc_embed_incorrect.png cc_embed_correct.png

Resources

You've completed our guide on building a Custom Command! You can now start working on your very own custom commands. Here are some resources you can use:

Command Hierarchy

This is the recommended variable order for your command responses, to ensure your command works correctly.

{silent} / {delete}
{require}
{respond} / {dm}
{!command} 
Plain text / other text variables

Additional Responses

Additional Responses is a Standard Premium feature. Click here to upgrade to Premium!

Additional responses allow you to make your custom commands more flexible, by adding the ability to send responses into multiple channels, as well as adding the ability to create customizable embeds!

  1. Click on the "Additional Responses" dropdown
  2. Select "Add response" if you'd like your response to be a plain-text message, or "Add embed response" if you'd like your response to be an embed.
  3. Select the channel you want your response to be sent in (or send it in a DM to the user running the command)
  4. Enter your message or customize your embed, then click save! Make sure you click "Add/Save Command" as well so your changes are saved!

All variables supported in standard custom command responses also work in additional responses!

Additional responses will not work if there is not at least one character not in a variable in your command. If you only have variables in your command, add a space after the last one.

Complete Variable List

Most of these variables ONLY work in the Custom Commands module. Variables for other modules are listed on that module's page on the dashboard.

Basic Variables

User Variables

Server Variables

Channel Variables

Role Variables

These variables must used with $N arguments, otherwise they won't work.

Time & Date

These variables use the server timezone set on the Dashboard page of your server's dashboard.

Advanced Variables

All of these variables are further explained here.

Troubleshooting Steps

Warning

Because Custom Commands are custom, there are many different issues that can cause them to not work. The list below is only some of the most frequent issues.
You can also try using our Custom Command Syntax Validator as a starting point!

I am a Dynosaur