Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
|
@@ -94,6 +94,12 @@ async def on_message(message):
|
|
| 94 |
f"[Jump to message!](https://discord.com/channels/{message.guild.id}/{message.channel.id}/{message.id})\n"
|
| 95 |
f"{alert}"
|
| 96 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
"""
|
| 98 |
if user_cooldowns[message.author.id]['count']/5 > cooldown_duration:
|
| 99 |
# ping admins
|
|
|
|
| 94 |
f"[Jump to message!](https://discord.com/channels/{message.guild.id}/{message.channel.id}/{message.id})\n"
|
| 95 |
f"{alert}"
|
| 96 |
)
|
| 97 |
+
await cakiki.send(
|
| 98 |
+
f"[EXPERIMENTAL ALERT] {message.author} may be posting too quickly! \n"
|
| 99 |
+
f"Spam count: {user_cooldowns[message.author.id]['count']}\n"
|
| 100 |
+
f"Message content: {message.content}\n"
|
| 101 |
+
f"[Jump to message!](https://discord.com/channels/{message.guild.id}/{message.channel.id}/{message.id})\n"
|
| 102 |
+
)
|
| 103 |
"""
|
| 104 |
if user_cooldowns[message.author.id]['count']/5 > cooldown_duration:
|
| 105 |
# ping admins
|