LogoLogo
  • Home
  • FAQ
  • Features
    • Rich Commands
    • Autoplaylists
    • Custom Commands
    • Blindtest
  • Commands
    • Music
    • Fun
    • Useful
    • Moderation
  • Configuration
    • Settings
    • Permissions
Powered by GitBook
On this page
  • Custom Commands Basics
  • Managing Custom Commands
  • Creating an alias
  • Commands which doesn't need any parameter
  • Mixing several commands together
  • Custom Commands Advanced
  • How to get user's parameter
  • Conditions
  • Others

Was this helpful?

  1. Features

Custom Commands

Everything you must know about how to create and use Custom Commands.

PreviousAutoplaylistsNextBlindtest

Last updated 5 years ago

Was this helpful?

Custom Commands are . It's highly recommended to read the before reading this page.

Custom Commands Basics

Managing Custom Commands

To manage custom commands on your server you have to use customcommand (or cc)

Usage

Help

cc add [command] [content]

Allows you to add a custom command on the server.

cc edit [command] [content]

Allows you to edit a custom command on the server.

cc delete [command]

Allows you to remove a custom command from the server.

cc list

Displays the custom commands list.

cc raw [command]

Displays the real content of a custom command.

Example :

Creating an alias

When creating the custom command, you can specify a static parameter for the command, for example>>>roll 10will call roll 10when usingk

Commands which doesn't need any parameter

Here's an example of a russian roulette which either play an earrape, or a relaxing song.

Mixing several commands together

You can call several commands thanks to&&

Example :

Custom Commands Advanced

How to get user's parameter

If you don't want a static parameter, you can ask the user for one.

Number

Effect

x

Empty.

&

Same as0but without counting quotations

0

Gives every words.

1

Gives the first word.

2

Gives the second word.

3

Gives the third word.

...

...

Using quotations between a group of words allows you to parse several words instead of parsing them one by one. Example : cmd "This is a test" Hello "Help please" {1} = This is a test {2} = Hello {3} = Help please

Example :

By default, if you only specify >>>volumewithout{1}it's the same thing as>>>volume {0} . This means that every parameter is parsed, when{1}used, the command will only take the first one.

Conditions

You can set a default value to use when no arguments are passed.

Example :

Others

You can select several parameters based on their index.

Example :

cmd This is an example

{1:3} = This is an
{-1} = example
{-1:-2} = example an
{2:} = is an example

You can use negative numbers to start counting from the end of the argument list.

To create an alias you can use the fact that with Rich Commands.

Rich Commands
Rich Commands page
Simple custom command
The letter k is now an alias for roll
Haha, I got lucky
Same example than Rich Command one, but in a custom command.
When calling =vm, since I didn't specify a third parameter, it returns Cool Song
you can call a command