[Core] Fixed [p]set owner and [p]set avatar (#817)

This commit is contained in:
Will 2017-06-17 11:31:44 -04:00 committed by Twentysix
parent 7b91bc0633
commit 9b4581a781

View File

@ -115,7 +115,7 @@ class Core:
await session.close()
try:
await self.bot.user.edit(avatar=data)
await ctx.bot.user.edit(avatar=data)
except discord.HTTPException:
await ctx.send("Failed. Remember that you can edit my avatar "
"up to two times a hour. The URL must be a "
@ -272,7 +272,7 @@ class Core:
else:
if message.content.strip() == token:
self.owner.reset_cooldown(ctx)
await self.bot.db.set("owner", ctx.author.id)
await ctx.bot.db.set("owner", ctx.author.id)
ctx.bot.author_id = ctx.author.id
await ctx.send("You have been set as owner.")
else: