Merge pull request 'Fixed minor issues' (#6) from dev into main

Reviewed-on: #6
This commit is contained in:
Profitroll 2024-06-23 13:14:08 +03:00
commit 4afcbc93d5
3 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ class Admin(commands.Cog):
amount: int,
user: User,
):
if ctx.user.id in self.client.config["bot"]["owners"]:
if ctx.user.id in self.client.owner_ids:
logging.info(
"User %s removed %s message(s) in %s",
ctx.user.id,
@ -163,7 +163,7 @@ class Admin(commands.Cog):
)
async def reboot_cmd(self, ctx: ApplicationContext):
await ctx.defer(ephemeral=True)
if ctx.user.id in self.client.config["bot"]["owners"]:
if ctx.user.id in self.client.owner_ids:
logging.info("Calling shutdown initiated by %s", guild_name(ctx.user))
await ctx.respond(
embed=Embed(

View File

@ -35,7 +35,7 @@ class Data(commands.Cog):
async def data_export_cmd(self, ctx: ApplicationContext, kind: str):
await ctx.defer()
holo_user = HoloUser(ctx.author)
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
if (ctx.user.id in self.client.owner_ids) or (
await holo_user.is_council(ctx.author)
):
logging.info(
@ -101,7 +101,7 @@ class Data(commands.Cog):
async def data_migrate_cmd(self, ctx: ApplicationContext, kind: str):
await ctx.defer()
holo_user = HoloUser(ctx.author)
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
if (ctx.user.id in self.client.owner_ids) or (
await holo_user.is_council(ctx.author)
):
logging.info(

View File

@ -67,7 +67,7 @@ def main():
try:
scheduler.start()
client.run(config_get_sync("token"))
client.run(config_get_sync("bot_token", "bot"))
except KeyboardInterrupt:
scheduler.shutdown()
exit()