$filter
Removes characters from the message.

FUNCTION USAGE

  • $filter[message;chars]

Properties:

message - The message being filtered. chars - The chars being removed from the message.

Example 1: Removes all @ from the message to prevent pings

1
bot.Command({
2
name: "say",
3
code: `
4
$filter[$message[];@]
5
`
6
})
Copied!

Example 2: Specifically removing every single s and o characters from the message.

1
bot.Command({
2
name: "say",
3
code: `
4
$filter[hello guys and girls. How are you doing?;so]
5
`
6
})
Copied!

Response: hell guy and girl. Hw are yu ding

Last modified 4mo ago