def cmd_shutdown(self, channel, author, server):
"""
Usage: {command_prefix}forcebackup
Forces a back up of all server configs
"""
if author.id in [self.config.master_id]:
await self.safe_send_message(discord.Object(id='155553608400764928'),
'__**<@{}>**__ shutdown made in *{}* on `{}`'.format(author.id,
channel.name,
server.name
)
)
await self.safe_send_message(channel, '**Powering off :see_no_evil:**')
await self.backup_config(self.server_index)
await self.logout()
return
评论列表
文章目录