[Core] Fixed [p]set owner

This commit is contained in:
Twentysix26 2017-07-19 11:30:40 +02:00
parent 19c69aaca6
commit 74910a490b

View File

@ -277,7 +277,7 @@ class Core:
if message.content.strip() == token: if message.content.strip() == token:
self.owner.reset_cooldown(ctx) self.owner.reset_cooldown(ctx)
await ctx.bot.db.set("owner", ctx.author.id) await ctx.bot.db.set("owner", ctx.author.id)
ctx.bot.author_id = ctx.author.id ctx.bot.owner_id = ctx.author.id
await ctx.send("You have been set as owner.") await ctx.send("You have been set as owner.")
else: else:
await ctx.send("Invalid token.") await ctx.send("Invalid token.")