Added language support to python. TODO: add language placeholders

This commit is contained in:
2025-06-18 21:10:51 +02:00
parent 2a951723b1
commit fcf95dd9eb
11 changed files with 87 additions and 27 deletions
+5 -2
View File
@@ -19,9 +19,12 @@ async def main():
# args is supposed to be undefined.
# It gets defined in Rust.
try: await bot.set_args(args)
try:
await bot.set_args(args)
init_lang(lang_name)
except NameError:
py_print("No command args found from Rust. Don't worry though, we have backup in place.")
py_print("No command args or language name found from Rust. Don't worry though, we have backup in place.")
init_lang("en")
if bot.args["dev"]:
py_print("ARGS:", str(bot.args))