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

@ -114,7 +114,7 @@ async def on_command_error(ctx, error):
@bot.command() @bot.command()
async def removecog(ctx, name): async def removecog(ctx, name):
"""Un-load a cog that was loaded by default.""" """Un-load a cog that was loaded by default."""
if ctx.message.author.id in MOD_IDS: if ctx.message.author.id == OWNER:
await ctx.send(embed=infmsg("Gotcha", "Ok, I'll try to disable `" + name + "`")) await ctx.send(embed=infmsg("Gotcha", "Ok, I'll try to disable `" + name + "`"))
try: try:
bot.remove_cog(name) bot.remove_cog(name)
@ -131,7 +131,7 @@ async def removecog(ctx, name):
@bot.command() @bot.command()
async def getsyslog(ctx): async def getsyslog(ctx):
"""Get a copy of the system log""" """Get a copy of the system log"""
if ctx.message.author.id in MOD_IDS: if ctx.message.author.id == OWNER:
log = syslog.getlog() log = syslog.getlog()
if len(log) > 1994: if len(log) > 1994:
text = paste(log) text = paste(log)

Loading…
Cancel
Save