Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
double threshold needed for spam detection 5->10
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ async def on_message(message):
|
|
145 |
|
146 |
# cooldown_duration = 3; false_positive_threshld = 3; -> 99% spam at spam_count of 10+ (could still be wrong, so we timeout)
|
147 |
cooldown_duration = 5 # messages per n seconds, was 1, now 3, could try 5
|
148 |
-
false_positive_threshold =
|
149 |
timeout_threshold = 10 # number of messages before issuing a timeout (similar function to ban, easier to reverse)
|
150 |
timeout_duration = 168 # timeout duration in hours (1 week)
|
151 |
|
|
|
145 |
|
146 |
# cooldown_duration = 3; false_positive_threshld = 3; -> 99% spam at spam_count of 10+ (could still be wrong, so we timeout)
|
147 |
cooldown_duration = 5 # messages per n seconds, was 1, now 3, could try 5
|
148 |
+
false_positive_threshold = 10 # big = alert less (catch less spam), small = alert more (catch more spam) (was 5, now 10)
|
149 |
timeout_threshold = 10 # number of messages before issuing a timeout (similar function to ban, easier to reverse)
|
150 |
timeout_duration = 168 # timeout duration in hours (1 week)
|
151 |
|