Spoilers, major command system improvements #4
@ -111,7 +111,7 @@ async def commands_register():
|
||||
|
||||
valid_locales = []
|
||||
files_locales = listdir(f'{configGet("locale", "locations")}')
|
||||
|
||||
|
||||
for entry in files_locales:
|
||||
if entry.endswith(".json"):
|
||||
valid_locales.append(".".join(entry.split(".")[:-1]))
|
||||
@ -131,7 +131,7 @@ async def commands_register():
|
||||
enabled = False
|
||||
|
||||
for module in config_commands[command]["modules"]:
|
||||
if config_modules[module] == module:
|
||||
if config_modules[module]["enabled"] is True:
|
||||
enabled = True
|
||||
|
||||
if enabled is False:
|
||||
|
Reference in New Issue
Block a user