Add sys.exit for reboot command.
This commit is contained in:
parent
6cf5283621
commit
e1f365a1e8
@ -2,7 +2,7 @@ import discord
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import logging
|
import logging
|
||||||
import inspect
|
import inspect
|
||||||
import os
|
import sys
|
||||||
import psutil
|
import psutil
|
||||||
import math
|
import math
|
||||||
from geeksbot.imports import utils
|
from geeksbot.imports import utils
|
||||||
@ -21,7 +21,7 @@ class Admin(commands.Cog):
|
|||||||
with open(f'{self.bot.config_dir}/restart', 'w') as f:
|
with open(f'{self.bot.config_dir}/restart', 'w') as f:
|
||||||
f.write(f'1\n{ctx.channel.id}')
|
f.write(f'1\n{ctx.channel.id}')
|
||||||
admin_logger.info("Rebooting")
|
admin_logger.info("Rebooting")
|
||||||
await self.bot.close()
|
sys.exit()
|
||||||
|
|
||||||
# TODO Fix view_code
|
# TODO Fix view_code
|
||||||
@commands.command(hidden=True)
|
@commands.command(hidden=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user