piracy reports on in bot-log for pirated releases

This commit is contained in:
Nicba1010
2018-04-26 18:08:14 +02:00
parent e8b3d4b7f2
commit a09bbad1f3

2
bot.py
View File

@@ -247,8 +247,10 @@ async def piracy_check(message: Message):
async def piracy_alert(message: Message):
try:
await message.delete()
await report("Pirated Release", message, None, attention=False)
except Forbidden as fbe:
print("Couldn't delete the moderated log attachment")
await report("Pirated Release", message, None, attention=True)
await message.channel.send(
"Pirated release detected {author}!\n"
"**You are being denied further support until you legally dump the game!**\n"