1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

bot: override process_config

This commit is contained in:
Io Mintz 2019-09-19 21:14:18 +00:00
parent 319456e9de
commit 1ad3a7ccec

4
bot.py
View file

@ -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 = (