mirror of
https://github.com/alterware/aw-bot.git
synced 2025-11-18 09:02:07 +00:00
chore: troll people who ping everyone
This commit is contained in:
@@ -122,6 +122,15 @@ async def setup(bot):
|
|||||||
await message.delete()
|
await message.delete()
|
||||||
return
|
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.
|
# Auto delete torrent if post in chat.
|
||||||
for file in message.attachments:
|
for file in message.attachments:
|
||||||
if file.filename.endswith((".torrent", ".TORRENT")):
|
if file.filename.endswith((".torrent", ".TORRENT")):
|
||||||
|
|||||||
Reference in New Issue
Block a user