From 568d714fb2c17f67ebbff725efc8851f51ee870d Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 Aug 2018 11:40:41 +0100 Subject: Return config from Config.load_config instead of setting it on bot --- Config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Config.py') diff --git a/Config.py b/Config.py index 21a144cf..894c9eb0 100644 --- a/Config.py +++ b/Config.py @@ -14,4 +14,4 @@ class Config(object): with open(self.full_location) as config_file: parser = configparser.ConfigParser() parser.read_string(config_file.read()) - self.bot.config = dict(parser["bot"].items()) + return dict(parser["bot"].items()) -- cgit v1.3.1-10-gc9f91