mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 06:05:54 +00:00
chore: troll people who ping everyone
This commit is contained in:
@@ -122,6 +122,15 @@ async def setup(bot):
|
||||
await message.delete()
|
||||
return
|
||||
|
||||
if "@everyone" in message.content or "@here" in message.content:
|
||||
if not message.channel.permissions_for(message.author).mention_everyone:
|
||||
await message.reply(
|
||||
"Dink Donk! Time to ping everyone!", mention_author=True
|
||||
)
|
||||
member = message.guild.get_member(message.author.id)
|
||||
await timeout_member(member)
|
||||
return
|
||||
|
||||
# Auto delete torrent if post in chat.
|
||||
for file in message.attachments:
|
||||
if file.filename.endswith((".torrent", ".TORRENT")):
|
||||
|
||||
Reference in New Issue
Block a user