Antiflood
Have you ever had users join your chat, and just send message after message, never even stopping to let someone else reply or participate in the conversation? So have we, and we have a solution!
Checking Current Antiflood Settings
To check the current antiflood settings for your group, simply use the below command:
/flood
Rose will then reply with a message informing you of your group's antiflood settings.
Setting The Message Limit
You can configure how many messages it will take before Rose will perform the antiflood punishment on the user. To set this, issue the below command:
/setflood <number>
Example
If you wanted Rose to perform the antiflood punishment on a user after they've sent 5 consecutive messages, you would issue the below command:
/setflood 5
Note
Keep in mind that there is no time limit that the messages need to be sent within. Antiflood will apply to any user that sends enough consecutive messages to reach the flood limit.
Set The Antiflood Mode
Rose has several different modes to handle how to punish users who exceed the flood limit, as listed below:
Action | Description |
---|---|
kick | Kick the user. They can rejoin if they need to. |
ban | Ban the user. They won't be able to rejoin until unbanned. |
tban TIME | Temporarily ban the user for TIME duration. |
mute | Mute the user. They won't be able to speak until unmuted. |
tmute TIME | Temporarily mute the user for TIME duration. |
You may notice that the above mentions TIME
variables. These are described below:
Option | Description |
---|---|
Xm | Bans the user for X minutes |
Xh | Bans the user for X hours |
Xd | Bans the user for X days |
Xw | Bans the user for X weeks |
To then set your floodmode, you would use the following command, where <action>
comes from the table above:
/setfloodmode <action>
Example
If a user exceeds the antiflood limit, and you want Rose to mute them for 10 minutes, you would issue the following command:
/setfloodmode tmute 10m
Or, if you would like to simply ban them, use:
/setfloodmode ban
Customising the flood deletion policies
By default, antiflood will delete all the messages sent after the flood limit is reached. This means that if you have a flood limit of 7 and a user sends consecutive 10 messages, the last 3 messages will get deleted.
However, some users might want Rose to delete all 10 messages. In this case, one can enable the "clearflood" setting to delete the entire set of flood messages.
Enabling clearflood:
/clearflood on
Disabling clearflood:
/clearflood off