1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Fixed accidental indent in method

This commit is contained in:
Phxntxm 2016-07-09 08:29:17 -05:00
parent 4a801f844e
commit c720b7e7b0

View file

@ -19,14 +19,14 @@ class Owner:
@checks.isOwner()
async def restart(self, ctx):
"""Forces the bot to restart"""
cursor = config.connection.cursor()
cursor.execute('use {0}'.format(config.db_default))
sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id)
cursor.execute(sql)
config.connection.commit()
await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention))
python = sys.executable
os.execl(python, python, *sys.argv)
cursor = config.connection.cursor()
cursor.execute('use {0}'.format(config.db_default))
sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id)
cursor.execute(sql)
config.connection.commit()
await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention))
python = sys.executable
os.execl(python, python, *sys.argv)
@commands.command(pass_context=True)
@checks.isOwner()