LBI/modules/restart/__init__.py
fomys 273d92ec5e Add version system
Remove BaseClass verification
2019-04-19 11:24:10 +02:00

27 lines
724 B
Python

from .base import BaseClass
class MainClass(BaseClass):
name = "restart"
super_users = [431043517217898496]
color = 0x000000
help_active = True
help = {
"description": "Gestion des redémarrages du bot",
"commands": {
"`{prefix}{command} py`": "Redémarre le bot.",
}
}
command_text = "restart"
async def command(self, message, args, kwargs):
await message.channel.send("{mention}, vous devez utiliser `{prefix}restart py` pour redémarer."
.format(prefix=self.client.config["prefix"], mention=message.author.mention))
async def com_py(self, message, args, kwargs):
await self.client.logout()