v5.0.0
$filterMessage
Removes specified value from specified text
This function filters and removes the given value from the given text

Fields

This function has 2 required fields
  1. 1.
    Text (Required)
  2. 2.
    Value (Required)
  3. 3.
    Value 2 (Optional)
Raw Usage: $filterMessage[text;value1,value2,...]

Options

  • Text - The text we're filtering from
  • Value(s) - The value(s) we're removing the text from

Usage

Filtering 1 word
1
bot.command({
2
name: "filterMessage",
3
code: `$filterMessage[Aoi.JS Ruben Leref Kubaturi Spesh Kino Azus;Aoi.JS]`
4
//Removes 'Aoi.JS' from text
5
})
Copied!
Filtering multiple words
1
bot.command({
2
name: "filterMessage",
3
code: `$filterMessage[Aoi.JS Ruben Leref Kubaturi Spesh Kino Azus Chiwi ElTuna;Chiwi,ElTuna,Aoi.JS]`
4
//Removes 'Kubaturi' and 'Aoi.JS' from text
5
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub