Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
revert
Browse files
app.py
CHANGED
@@ -130,6 +130,7 @@ async def on_message(message):
|
|
130 |
f"[Jump to message!](https://discord.com/channels/{message.guild.id}/{message.channel.id}/{message.id})\n"
|
131 |
)
|
132 |
# auto-ban
|
|
|
133 |
if spam_count >= timeout_threshold:
|
134 |
try:
|
135 |
member = message.author
|
@@ -138,7 +139,10 @@ async def on_message(message):
|
|
138 |
)
|
139 |
await member.ban()
|
140 |
except Exception as e:
|
141 |
-
print(f"Error: {e}")
|
|
|
|
|
|
|
142 |
|
143 |
user_cooldowns[message.author.id]['timestamp'] = message.created_at
|
144 |
|
|
|
130 |
f"[Jump to message!](https://discord.com/channels/{message.guild.id}/{message.channel.id}/{message.id})\n"
|
131 |
)
|
132 |
# auto-ban
|
133 |
+
"""
|
134 |
if spam_count >= timeout_threshold:
|
135 |
try:
|
136 |
member = message.author
|
|
|
139 |
)
|
140 |
await member.ban()
|
141 |
except Exception as e:
|
142 |
+
print(f"Error: {e}")
|
143 |
+
|
144 |
+
"""
|
145 |
+
|
146 |
|
147 |
user_cooldowns[message.author.id]['timestamp'] = message.created_at
|
148 |
|