From ada3aac86a798ca7af5c60132028aed281f60cbe Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 13 Oct 2017 23:39:12 -0400 Subject: [PATCH] utils.config --- src/main/misc/checks.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/misc/checks.py b/src/main/misc/checks.py index 09daf75..c782109 100644 --- a/src/main/misc/checks.py +++ b/src/main/misc/checks.py @@ -6,11 +6,10 @@ import discord from discord.ext import commands from discord.ext.commands import errors -with open('config.json') as infile: - config = json.load(infile) +from utils import utils as u -owner_id = config['owner_id'] -listed_ids = config['listed_ids'] +owner_id = u.config['owner_id'] +listed_ids = u.config['listed_ids'] def is_owner():