diff --git a/src/utils/utils.py b/src/utils/utils.py index ebb30d1..cdc0967 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -82,10 +82,10 @@ def dump(obj, filename, *, json=False): jsn.dump(obj, outfile, indent=4, sort_keys=True) -settings = setdefault('misc/settings.pkl', {'del_ctx': [], 'del_resp': [], 'prefixes': {}}) -tasks = setdefault('cogs/tasks.pkl', {'auto_del': [], 'auto_hrt': [], 'auto_rev': [], 'periodic_gpm': []}) -temp = setdefault('temp/temp.pkl', {'startup': ()}) -secrets = setdefault('secrets.json', {'client_secrets': {'client_id': '', 'client_secret': ''}}, json=True) +settings = setdefault('misc/settings.pkl', default={'del_ctx': [], 'del_resp': [], 'prefixes': {}}) +tasks = setdefault('cogs/tasks.pkl', default={'auto_del': [], 'auto_hrt': [], 'auto_rev': [], 'periodic_gpm': []}) +temp = setdefault('temp/temp.pkl', default={'startup': ()}) +secrets = setdefault('secrets.json', default={'client_secrets': {'client_id': '', 'client_secret': ''}}, json=True) RATE_LIMIT = 2.2 color = d.Color(0x1A1A1A)