fix /command bug 2

pull/11/head
Konstantine Tsafatinos 2023-07-20 01:27:21 -04:00
parent 2b2e82e28f
commit 0eef370d15
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ class DiscordBot(commands.Bot):
return return
elif message.channel.name != 'skynet': elif message.channel.name != 'skynet':
return return
elif message.author != self.user: elif message.author == self.user:
await self.process_commands(message) return
await self.process_commands(message)
await message.channel.send('', view=SkynetView(self.bot)) await message.channel.send('', view=SkynetView(self.bot))
async def on_command_error(self, ctx, error): async def on_command_error(self, ctx, error):