Creating & Managing Custom Commands
As well as being able to use Modr8's built in commands there are tmes when you want to build your own. Whether its to display some web-links or further information for your community you can create commands to suit your needs following the instructions below.
Creating A Custom Command
Login to the Modr8 Platform
Click
"Manage"
on your bot profileScroll to your Chat Profile and click
"Commands"
Click
"Create"
on the"Create A New Command"
card to open the command builder pageSelect a trigger for your command using the drop-down in the
"Trigger"
row. This defines the start of the command and we support the following options:/ # ! - . @
Next you will provide a name for your command, this is the text used after the trigger for example:
"staff"
would work with the trigger"/"
to be run as/staff
in your chatEnter a description for your command in the text area provided. The description shows up in the command list which Modr8 provides when users type
/commands
in the chat windowDefine the
"Access"
level required to execute the command. You may want the command to only work for admins instead of all users.The command output is defined in the
"Content"
text area. Here you can add all the command data you need using the rich text editor.If you wish to display an image with your command add the web address to the
"Image"
text input. Make sure the file ends in.png, .jpg, .gif or .mp4
to send correctly.You can add buttons to the command output by clicking the button in the
"Message Buttons"
row. Often people add web links behind buttons.Decide if you want the command output to be sent as a reply to the original command by enabling
"Reply To User"
Decide if you want the output of the command to delete based on your bot response deletion setting or if you want the output to remain in the chat. If you enable
"Delete Response After Timeout"
the message is deleted.Leave the
"Enabled"
toggle on unless you wish the command to be disabled by default and not run.Click
"Submit"
to save your command
You will notice your command is listed automatically when a user types /commands in your chat. This can be a good way to let users know the commands you have registered. We also list reputation, community reporting and referral commands here if you turn these modules on
Managing Commands
Whenever you have created a command it is listed in a table on the command page.
With the registered command list you will see:
Command trigger and name, showing how users will execute the command in chat.
Command description explaining the command usage
Defined access level which could be everyone or admins only
Quick activation / de-activation toggel. Switching this will change whether a command will run or not
Pencil icon allows you to edit the command and make adjustments as needed
Red trash bin button will delete the command from your list
Copy button will provide a pop up with code to export and save as a back up or import into other chats
Exporting Commands
To export commands from your chat level command list you have two options, which can be both found on the following page.
Login to the Modr8 Platform
Click
"Manage"
on your bot profileScroll to your Chat Profile and click
"Commands"
From here your two options for exporting commands can be found which are:
Export One: Clicking the copy icon beside your command in the registered command list, which opens a pop-up with text for you to copy.
Export All: Clicking "Export" button on the "Export Commands" card, which opens a pop-up with text for you to copy.
The latter will export ALL commands from your chat, this can be useful when taking a full backup of your chat commands or wanting to export to import them into another chat.
Importing Commands
Whether you wish to import one command or a batch of commands you will do so in the same way.
Login to the Modr8 Platform
Click
"Manage"
on your bot profileScroll to your Chat Profile and click
"Commands"
Paste your exported command into the
"Import Commands"
cardClick
"Import"
You will then see your commands listed in the registered commands table.
Last updated