mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
feat(files): mkdir for idevice files
This commit is contained in:
@@ -14,7 +14,7 @@ class ErrorCodes(commands.Cog, name="errorcodes"):
|
||||
self.code_to_key = {error['code']: error['name'] for error in self.errors}
|
||||
|
||||
def load_errors(self):
|
||||
json_path = os.path.join(os.path.dirname(__file__), 'errorcodes.json')
|
||||
json_path = os.path.join(os.path.dirname(__file__), 'files/errorcodes.json')
|
||||
try:
|
||||
with open(json_path, 'r', encoding='utf-8') as f:
|
||||
return json.load(f)
|
||||
|
||||
Reference in New Issue
Block a user