more readable

This commit is contained in:
Drapersniper 2020-06-23 14:40:35 +01:00
parent bed1202f06
commit 9588b1fa8f
No known key found for this signature in database
GPG Key ID: A74CBBD5EDD355D5

View File

@ -22,9 +22,9 @@ async def _init(bot: Red):
global _config global _config
global _bot_ref global _bot_ref
global config_cache global config_cache
_bot_ref = bot _bot_ref = bot
_config = Config.get_conf(None, 2711759130, force_registration=True, cog_name="Audio") _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("EQUALIZER", 1)
_config.init_custom(PlaylistScope.GLOBAL.value, 1) _config.init_custom(PlaylistScope.GLOBAL.value, 1)
_config.init_custom(PlaylistScope.GUILD.value, 2) _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_global(**constants.DEFAULT_COG_GLOBAL_SETTINGS)
_config.register_user(**constants.DEFAULT_COG_USER_SETTINGS) _config.register_user(**constants.DEFAULT_COG_USER_SETTINGS)
_config.register_channel(**constants.DEFAULT_COG_CHANNEL_SETTINGS) _config.register_channel(**constants.DEFAULT_COG_CHANNEL_SETTINGS)
config_cache = SettingCacheManager(bot, _config, enable_cache=True)