$messageContains

(for premium bots)

$messageContains[] is a callback that allows you to create a trigger with multiple phrases. In addition, the bot also looks for those phrases anywhere in the author's message. This feature is great for creating an auto-response or auto-moderation system.

Syntax

$messageContains[Word;...]

Parameters

  • Word (Type: String || Flag: Required): The phrases/words the bot checks for. Separate phrases using ;.

Example

  1. Create a new command with command trigger set as $messageContains[].

  2. Put text in the reply message/code.

    example

Now, let's say in chat someone typed : Hello Bot!, Hello, Hey Everyone!, Hi Noituri etc. The bot would respond with "Hello there! How are you?".