Verwijder reboot functie

is alleen maar gewoon gezeik, en restarten kan ook vanuit de server
This commit is contained in:
2022-12-04 16:28:38 +01:00
parent 074545f965
commit b376191cd8
-10
View File
@@ -123,13 +123,3 @@ class General(commands.Cog):
msg = 'Stemmen en nomineren kan hier: {}\n'.format(self.muzak_url)
msg += '*Er zijn al {} nummers genomineerd*\n'.format(data['stemCount'])
yield from ctx.channel.send(msg)
@commands.command(pass_context=True, hidden=True)
@asyncio.coroutine
def reboot(self, ctx, password=""):
""" Reboot.. """
if password == os.getenv("STROOP_RESET_PASSWORD"):
yield from ctx.channel.send("Rebooting.. brb!")
os.execv(sys.executable, ['python3'] + sys.argv)
else:
yield from ctx.channel.send(ctx.author.mention + " What's the magic word?")