mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Core] Fixed [p]set owner
This commit is contained in:
parent
19c69aaca6
commit
74910a490b
@ -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.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user