diff --git a/disco/bot/bot.py b/disco/bot/bot.py index 0ad87da..f90b882 100644 --- a/disco/bot/bot.py +++ b/disco/bot/bot.py @@ -505,6 +505,9 @@ class Bot(LoggingClass): self.config.plugin_config_dir, name) + '.' + self.config.plugin_config_format data = {} + if self.config.shared_config: + data.update(self.config.shared) + if name in self.config.plugin_config: data.update(self.config.plugin_config[name]) @@ -512,9 +515,6 @@ class Bot(LoggingClass): with open(path, 'r') as f: data.update(Serializer.loads(self.config.plugin_config_format, f.read())) - if self.config.shared_config: - data.update(self.config.shared) - if hasattr(cls, 'config_cls'): inst = cls.config_cls() if data: