Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
|