[restart module] fix restart
This commit is contained in:
parent
28f7e0ea1d
commit
7224faf385
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user