Custom Command
FunctionsRandom Functions

$randomText

Returns a random text from a list of provided texts. This function is useful for creating variety in your bot's responses.

Usage:

$randomText[text1;text2;text3;...]
  • text1;text2;text3;...: A semicolon-separated list of texts. The function will randomly choose one of these texts to return.

Example:

$randomText[Hello;Hi;Hey]

This example will randomly return either "Hello", "Hi", or "Hey".

Member
9/5/2026
!!exec $randomText[I'm sad;I'm very happy]
Custom Command
APP
9/5/2026
I'm very happy

Explanation:

In this example, the command !!exec $randomText[I'm sad;I'm very happy] instructs the bot to execute the $randomText function with the options "I'm sad" and "I'm very happy". The bot randomly selects one of these options and returns it, in this case, "I'm very happy".

Function difficulty: Easy

Tags: Random Random Text Choose Return Random Text

On this page