Fixed accidental indent in method
This commit is contained in:
parent
4a801f844e
commit
c720b7e7b0
|
@ -19,14 +19,14 @@ class Owner:
|
||||||
@checks.isOwner()
|
@checks.isOwner()
|
||||||
async def restart(self, ctx):
|
async def restart(self, ctx):
|
||||||
"""Forces the bot to restart"""
|
"""Forces the bot to restart"""
|
||||||
cursor = config.connection.cursor()
|
cursor = config.connection.cursor()
|
||||||
cursor.execute('use {0}'.format(config.db_default))
|
cursor.execute('use {0}'.format(config.db_default))
|
||||||
sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id)
|
sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id)
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
config.connection.commit()
|
config.connection.commit()
|
||||||
await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention))
|
await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention))
|
||||||
python = sys.executable
|
python = sys.executable
|
||||||
os.execl(python, python, *sys.argv)
|
os.execl(python, python, *sys.argv)
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@checks.isOwner()
|
@checks.isOwner()
|
||||||
|
|
Loading…
Reference in a new issue