i'm an idiot
This commit is contained in:
parent
bd675bdd32
commit
ee6e5bd0a6
@ -49,7 +49,7 @@ def get_base_dir() -> str:
|
|||||||
if current == 'commands':
|
if current == 'commands':
|
||||||
return check_dir(cwd)
|
return check_dir(cwd)
|
||||||
elif current == 'Praxis_Bot' or current == 'Praxis':
|
elif current == 'Praxis_Bot' or current == 'Praxis':
|
||||||
return check_dir(os.path.join(current, "commands"))
|
return check_dir(os.path.join(cwd, "commands"))
|
||||||
else:
|
else:
|
||||||
print("could not find working directory for Praxis_Bot/commands")
|
print("could not find working directory for Praxis_Bot/commands")
|
||||||
raise
|
raise
|
||||||
@ -71,4 +71,4 @@ def check_dir(path: str) -> str:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cmds = load_commands()
|
cmds = load_commands()
|
||||||
cmds["!tts"].do_command("!tts let's do some shit")
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user