Testing/CI #21
-10
@@ -123,13 +123,3 @@ class General(commands.Cog):
|
|||||||
msg = 'Stemmen en nomineren kan hier: {}\n'.format(self.muzak_url)
|
msg = 'Stemmen en nomineren kan hier: {}\n'.format(self.muzak_url)
|
||||||
msg += '*Er zijn al {} nummers genomineerd*\n'.format(data['stemCount'])
|
msg += '*Er zijn al {} nummers genomineerd*\n'.format(data['stemCount'])
|
||||||
yield from ctx.channel.send(msg)
|
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?")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user