ANTISPAM
On This tutorial we are using the default prefix, but have in mind that you may have /can change it.
People likes to be funny, but somehow the good times ends, when they become addicted to post repetitive lines, generating not ending notifications, that might crash your device. Therefore prevent it with Antispam feature...
Run
;antispam
;antispam enable
;antispam config
The available configurations are:
Sticker
Determines whether sticker spam should be considered
;antispam sticker enable/disable
Default: disabled
Recommended: Is up to you own criteria
Spam-rate
The message rate that will be considered spam
;antispam spam-rate [Number of msgs/timeRange]
Range: 2s - 59m 59s
Example: 10/15mmeans if a user sends 10or more messages in a period of 15 minutes, the bot will consider him to be spamming.
Ignored-users
The users will be ignored by the spam filter.
;antispam ignored-users [add/remove] @user1 @user2 ...
Ignored-roles
The roles that will be ignored by the spam filter.
;antispam ignored-roles [add/remove] @role1 @role2 ...
Ignored-channels
The channels that will be ignored by the spam filter.
;antispam ignored-channels [add/remove] @channel1 @channel2 ...
Duplicate-rate
The duplicate message rate will be considered spam
;antispam duplicate-rate [Number of msgs/timeRange]
Range: 2s - 59m 59s
Example: 10/15mmeans if a user sends 10or more duplicate messages in a period of 15 minutes, the bot will consider it as spam.
Mute
If enabled, the user will be muted when the warning count matches the configuration. If disabled, the user will not be muted.
;antispam mute [enable/disable]
Default: Disabled
Recommended Enabled
Mute-warns
The number of warnings that should result in a mute.
;antispam mute-warns [Number of warns/timeRange]
Range: 2s - 59m 59s
Example: 10/15mmeans if a user gains 10 warns in a period of 15 minutes, he/she will be muted
Warn
If enabled, a warning will be issued when the bot detects spam according to the configuration. If disabled, the user will not be warned, but still the mute will work (if enabled)
;antispam warn [enable/disable]
Default: Disabled
Recommended: Enable
Lockdown
If enabled, the channel will be locked when the bot detects multiple users' spam according to the configuration. If disabled, the channel will not be locked, but still the mute will work (if enabled)
;antispam lockdown [enable/disable]
Default: Disabled
Recommended: Enable
Mute-duration
Time duration for which the user should be muted. 0stands forever.
;antispam mute-duration [time]
Example: 1d 4h 25m
Timeout
This feature comes to replace somehow the mute feature, still, will copy the configuration done on mute if you have it enabled.
The configuration will be more easy and quick with bottoms