diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index 055abdd..75f0604 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -4,7 +4,7 @@ from . import config def isOwner(ctx): - return ctx.message.author.id == config.ownerID + return ctx.message.author.id in config.owner_ids def customPermsOrRole(**perms): diff --git a/cogs/utils/config.py b/cogs/utils/config.py index dd98a2e..9398e23 100644 --- a/cogs/utils/config.py +++ b/cogs/utils/config.py @@ -10,13 +10,13 @@ with open("/home/phxntx5/public_html/Bonfire/config.yml", "r") as f: connection = None botDescription = global_config.get("description") -commandPrefix = global_config.get("command_prefix") +commandPrefix = global_config.get("command_prefix", "!") discord_bots_key = global_config.get('discord_bots_key') battleWins = global_config.get("battleWins", []) defaultStatus = global_config.get("default_status", "") botToken = global_config.get("bot_token", "") -ownerID = global_config.get("owner_id", "") +owner_ids = global_config.get("owner_id", []) def saveContent(key: str, content):