From 9588b1fa8f964f2d94ffda71272cc48e012dbe4c Mon Sep 17 00:00:00 2001 From: Drapersniper <27962761+drapersniper@users.noreply.github.com> Date: Tue, 23 Jun 2020 14:40:35 +0100 Subject: [PATCH] more readable --- redbot/core/apis/audio/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redbot/core/apis/audio/config.py b/redbot/core/apis/audio/config.py index 341d362ee..b054d43f7 100644 --- a/redbot/core/apis/audio/config.py +++ b/redbot/core/apis/audio/config.py @@ -22,9 +22,9 @@ async def _init(bot: Red): global _config global _bot_ref global config_cache + _bot_ref = bot _config = Config.get_conf(None, 2711759130, force_registration=True, cog_name="Audio") - config_cache = SettingCacheManager(bot, _config, enable_cache=True) _config.init_custom("EQUALIZER", 1) _config.init_custom(PlaylistScope.GLOBAL.value, 1) _config.init_custom(PlaylistScope.GUILD.value, 2) @@ -37,3 +37,5 @@ async def _init(bot: Red): _config.register_global(**constants.DEFAULT_COG_GLOBAL_SETTINGS) _config.register_user(**constants.DEFAULT_COG_USER_SETTINGS) _config.register_channel(**constants.DEFAULT_COG_CHANNEL_SETTINGS) + + config_cache = SettingCacheManager(bot, _config, enable_cache=True)