From 0eef370d157ebbd0e7fba0445d22b3f3afb35954 Mon Sep 17 00:00:00 2001 From: Konstantine Tsafatinos Date: Thu, 20 Jul 2023 01:27:21 -0400 Subject: [PATCH] fix /command bug 2 --- skynet/frontend/discord/bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skynet/frontend/discord/bot.py b/skynet/frontend/discord/bot.py index e467e5f..665e8d5 100644 --- a/skynet/frontend/discord/bot.py +++ b/skynet/frontend/discord/bot.py @@ -54,8 +54,9 @@ class DiscordBot(commands.Bot): return elif message.channel.name != 'skynet': return - elif message.author != self.user: - await self.process_commands(message) + elif message.author == self.user: + return + await self.process_commands(message) await message.channel.send('', view=SkynetView(self.bot)) async def on_command_error(self, ctx, error):