Updated arg system & made websocked somehow work???

This commit is contained in:
2025-02-08 15:50:33 +01:00
parent e2869fb8a2
commit 1c7170bb81
10 changed files with 77 additions and 52 deletions
+5 -4
View File
@@ -15,15 +15,16 @@ def main():
except NameError:
py_print("No command args found from Rust. Don't worry though, we have backup in place.")
py_print("ARGS:", str(bot.args[1:]))
if bot.args["dev"]:
py_print("ARGS:", str(bot.args))
py_print("Reading data...")
data.read_data(bot)
if "--py" not in bot.args:
if True: #bot.args["py"]:
py_print("Connecting to local websocket...")
asyncio.run(py_websocket.websocket_client())
asyncio.run(py_websocket.websocket_client(bot))
py_websocket.send_message("[Connection test] Hello from Python!")
#py_websocket.send_message("[Connection test] Hello from Python!")
main()