$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
-
Create a new command with command trigger set as
$messageContains[]
. -
Put text in the reply message/code.
-
Now, let’s say in chat someone types :
Hello Bot!
,Hello
,Hey Everyone!
,Hi Noituri
etc. The bot will respond with “Hello there! How are you?”.Hello Hello there! How are you? Hi Noituri Hello there! How are you?