diff --git a/.vscode/settings.json b/.vscode/settings.json index 3e3a7e4..d1507a4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,8 +4,5 @@ "reportArgumentType": "information", "reportAttributeAccessIssue": "warning" }, - "cSpell.words": [ - "cakeday", - "cakedays" - ] -} \ No newline at end of file + "cSpell.words": ["cakeday", "cakedays", "cooldown", "nextcord"] +} diff --git a/off-cooldown-bot/settings.py b/off-cooldown-bot/settings.py index 809154e..43267ea 100644 --- a/off-cooldown-bot/settings.py +++ b/off-cooldown-bot/settings.py @@ -35,3 +35,7 @@ class Settings(YAMLWizard): settings = Settings.from_yaml_file(CONFIG_LOCATION) + +# I'm not expecting a list to be returned. +if isinstance(settings, list): + settings = settings[0]