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:
parent
319456e9de
commit
1ad3a7ccec
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -28,12 +28,12 @@ class Bot(Bot):
|
||||||
config = eval(f.read(), {})
|
config = eval(f.read(), {})
|
||||||
|
|
||||||
super().__init__(config=config, **kwargs)
|
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
|
"""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.
|
We do it this way so that they can be used anywhere instead of requiring a bot instance.
|
||||||
"""
|
"""
|
||||||
|
super().process_config()
|
||||||
import utils.misc
|
import utils.misc
|
||||||
default = ('❌', '✅')
|
default = ('❌', '✅')
|
||||||
utils.SUCCESS_EMOJIS = utils.misc.SUCCESS_EMOJIS = (
|
utils.SUCCESS_EMOJIS = utils.misc.SUCCESS_EMOJIS = (
|
||||||
|
|
Loading…
Reference in a new issue