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