forgor to remove that

pull/1/head
Matt C 3 years ago
parent d6482afdbd
commit 2b71a024c9

@ -37,7 +37,7 @@ class Debug(commands.Cog):
@commands.command() @commands.command()
async def restart(self, ctx): async def restart(self, ctx):
"""Restart the bot (Mod. only)""" """Restart the bot (Mod. only)"""
if ctx.message.author.id in MOD_IDS: if ctx.message.author.id == OWNER:
await ctx.send(embed=infmsg("Sad", "Ok, restarting")) await ctx.send(embed=infmsg("Sad", "Ok, restarting"))
if ctx.voice_client is not None: if ctx.voice_client is not None:
await ctx.voice_client.disconnect() await ctx.voice_client.disconnect()
@ -57,7 +57,7 @@ class Debug(commands.Cog):
@commands.command() @commands.command()
async def update(self, ctx): async def update(self, ctx):
"""Update bot from Git, and restart (Mod. only)""" """Update bot from Git, and restart (Mod. only)"""
if ctx.message.author.id in MOD_IDS: if ctx.message.author.id == OWNER:
await ctx.send(embed=infmsg("Updater", "Updating...")) await ctx.send(embed=infmsg("Updater", "Updating..."))
syslog.log( syslog.log(
"Admin-Important", "Admin-Important",
@ -94,7 +94,7 @@ class Debug(commands.Cog):
@commands.command() @commands.command()
async def chbranch(self, ctx, *, branch): async def chbranch(self, ctx, *, branch):
"""Switch bot's upstream to a given branch (Mod. only)""" """Switch bot's upstream to a given branch (Mod. only)"""
if ctx.message.author.id in MOD_IDS: if ctx.message.author.id == OWNER:
await ctx.send(embed=infmsg("Updater", "Switching branch...")) await ctx.send(embed=infmsg("Updater", "Switching branch..."))
syslog.log( syslog.log(
"Admin-Important", "Admin-Important",

Loading…
Cancel
Save