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
|
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):
|
||||||
|
|
Loading…
Reference in New Issue