Made them communicate but somehow broke "hello" messages

This commit is contained in:
2025-02-07 21:16:33 +01:00
parent 9425c2cccc
commit e2869fb8a2
8 changed files with 125 additions and 2 deletions
+8
View File
@@ -1,8 +1,10 @@
import sys
import asyncio
from macros import *
import bot as botPy
import data
import py_websocket
def main():
@@ -17,5 +19,11 @@ def main():
py_print("Reading data...")
data.read_data(bot)
if "--py" not in bot.args:
py_print("Connecting to local websocket...")
asyncio.run(py_websocket.websocket_client())
py_websocket.send_message("[Connection test] Hello from Python!")
main()