lunarflu HF Staff commited on
Commit
5b100ee
·
verified ·
1 Parent(s): 4517d92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -208,6 +208,7 @@ async def on_message(message):
208
  print(f"Could not DM user before ban: {dm_err}")
209
 
210
  await member.ban(
 
211
  reason=f"Auto-ban: reached {spam_count} spam alerts within ~{cooldown_duration}s inter-arrival window"
212
  )
213
 
 
208
  print(f"Could not DM user before ban: {dm_err}")
209
 
210
  await member.ban(
211
+ delete_message_seconds=600, # delete all messages from past 10 minutes
212
  reason=f"Auto-ban: reached {spam_count} spam alerts within ~{cooldown_duration}s inter-arrival window"
213
  )
214