From b376191cd82bd801e4f2d191b5f34565e4522005 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sun, 4 Dec 2022 16:28:38 +0100 Subject: [PATCH] Verwijder reboot functie is alleen maar gewoon gezeik, en restarten kan ook vanuit de server --- General.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/General.py b/General.py index 92cba0e..628e199 100644 --- a/General.py +++ b/General.py @@ -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?")