diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index 6d6508c..1bed86d 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals, absolute_import, division, print_function """A way to read the bot's config without bot""" +import sopel.config from sopel.cli.run import build_parser, get_configuration import sys @@ -25,6 +26,9 @@ class BotConfig(): # Filename self.filename = self.config.filename + # load Sopel config fully + sopel.config.Config(self.config.filename) + # load as dict config = configparser.ConfigParser() config.read(self.filename)