[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
"""
async def on_message(self, message):
args=message.content.split(" ")
if args[0]=='%srestart'%self.prefix:
await message.channel.send(message.author.mention + ", Le bot va redémarrer...")
else:
await self.modules['help'][1].send_help(message.channel, self)
await message.channel.send(message.author.mention + ", Le bot va redémarrer...")
await self.client.logout()