[restart module] fix restart

This commit is contained in:
Suwako Moriya 2019-02-26 19:22:31 +01:00
parent 28f7e0ea1d
commit 7224faf385

View File

@ -18,8 +18,5 @@ class MainClass():
</prefix>restart </prefix>restart
""" """
async def on_message(self, message): async def on_message(self, message):
args=message.content.split(" ") await message.channel.send(message.author.mention + ", Le bot va redémarrer...")
if args[0]=='%srestart'%self.prefix: await self.client.logout()
await message.channel.send(message.author.mention + ", Le bot va redémarrer...")
else:
await self.modules['help'][1].send_help(message.channel, self)