lunarflu HF Staff commited on
Commit
a6e7992
·
verified ·
1 Parent(s): bb10f07

double threshold needed for spam detection 5->10

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 5 # big = alert less (catch less spam), small = alert more (catch more spam)
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