From 1ad3a7ccec9a6266dd9323922e6948522e197071 Mon Sep 17 00:00:00 2001 From: Io Mintz Date: Thu, 19 Sep 2019 21:14:18 +0000 Subject: [PATCH] bot: override process_config --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 97b23bc..f5b68f8 100755 --- a/bot.py +++ b/bot.py @@ -28,12 +28,12 @@ class Bot(Bot): config = eval(f.read(), {}) super().__init__(config=config, **kwargs) - self._setup_success_emojis() - def _setup_success_emojis(self): + def process_config(self): """Load the emojis from the config to be used when a command fails or succeeds We do it this way so that they can be used anywhere instead of requiring a bot instance. """ + super().process_config() import utils.misc default = ('❌', '✅') utils.SUCCESS_EMOJIS = utils.misc.SUCCESS_EMOJIS = (