mirror of https://github.com/skygpu/skynet.git
fix /command bug 2
parent
2b2e82e28f
commit
0eef370d15
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue