revert to auto-deletion in all channels for piracy tools
@@ -35,12 +35,11 @@ class Events:
await self.bot.send_message(message.author, "Please read #welcome-and-rules. You cannot link to tools used for piracy, therefore your message was automatically deleted.", embed=embed)
await self.bot.send_message(self.bot.mods_channel, "**Bad URL**: {} posted a freeShop Repo URL in {} @here (message deleted)".format(message.author.mention, message.channel.mention), embed=embed)
if contains_piracy_tool_mention:
- if is_help_channel:
try:
await self.bot.delete_message(message)
except discord.errors.NotFound:
pass
- await self.bot.send_message(message.author, "Please read #welcome-and-rules. You cannot mention tools used for piracy in the help channels, therefore your message was automatically deleted.", embed=embed)
+ await self.bot.send_message(message.author, "Please read #welcome-and-rules. You cannot mention tools used for piracy, therefore your message was automatically deleted.", embed=embed)
await self.bot.send_message(self.bot.mods_channel, "**Bad tool**: {} mentioned a piracy tool in {} @here{}".format(message.author.mention, message.channel.mention, " (message deleted)" if is_help_channel else ""), embed=embed)
if contains_piracy_site_mention or contains_piracy_url_mention:
try:
