From 3d833744240b3467f81551d6bb52238dd9badb7a Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 4 Aug 2016 09:30:34 -0500 Subject: [PATCH] Added the abilty to have multiple server ID's, if that ever happens --- cogs/utils/checks.py | 2 +- cogs/utils/config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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):