From 174d3bcb57199216d5b33b01d2fb995e3d417bd5 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 23:12:22 -0500 Subject: [PATCH] BUGFIX - Working on the startup check --- bot.py | 2 +- modules/LinkCop/cog.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 850d6ae..bd8e063 100644 --- a/bot.py +++ b/bot.py @@ -247,7 +247,6 @@ class Bot(commands.Bot): bots_online = [] def verify_bot_msg(msg): - print(f"Response ID: {msg.author.id}") if msg.author.id in BotResources.PDB_KNOWN_BOT_IDS: bots_online.append(msg.author.id) @@ -443,4 +442,5 @@ class Bot(commands.Bot): await self.invoke(ctx) return True else: + await self.process_commands(message) return False diff --git a/modules/LinkCop/cog.py b/modules/LinkCop/cog.py index ab8fcbd..9d70c13 100644 --- a/modules/LinkCop/cog.py +++ b/modules/LinkCop/cog.py @@ -73,8 +73,7 @@ class LinkCop(commands.Cog): print(f"Link Cop Error: '{err}'") print(f"Bot or other non-user that has not been whitelisted sent a message") - if not await self.bot.check_and_reply_to_ping(ctx): - await self.bot.process_commands(ctx) + await self.bot.check_and_reply_to_ping(ctx) async def send_message(self, message): send_channel = self.bot.get_channel(id=self.reply_channel_id)