keyword searching for failed Wii U update
@@ -112,6 +112,12 @@ class Events:
pass # don't fail in case user has DMs disabled for this server, or blocked the bot
await self.bot.send_message(self.bot.messagelogs_channel, "**Bad site**: {} mentioned a piracy site indirectly in {}{}".format(message.author.mention, message.channel.mention, " (message deleted)" if is_help_channel else ""), embed=embed)
+ async def keyword_search(self, message):
+ print("keyword search")
+ if "wiiu" in message.channel.name and "download" in message.content and "update" in message.content and "manag" in message.content: # intentional typo in manage
+ embed = discord.Embed(description="A failed update in Download Management does not mean there is an update and the system is trying to download it. This means your blocking method (DNS etc.) is working and the system can't check for an update.", color=discord.Color(0x009AC7))
+ await self.bot.send_message(message.channel, message.author.mention, embed=embed)
+
async def user_spam_check(self, message):
if message.author.id not in self.user_antispam:
self.user_antispam[message.author.id] = []
@@ -187,6 +193,7 @@ class Events:
if message.author == self.bot.server.me or self.bot.staff_role in message.author.roles or message.channel == self.bot.helpers_channel: # don't process messages by the bot or staff or in the helpers channel
return
await self.scan_message(message)
+ await self.keyword_search(message)
self.bot.loop.create_task(self.user_spam_check(message))
self.bot.loop.create_task(self.channel_spam_check(message))
