made websockets able to run functions

This commit is contained in:
2025-02-08 20:18:00 +01:00
parent bf2e1e347f
commit b816c12a6c
9 changed files with 99 additions and 59 deletions
+1
View File
@@ -79,6 +79,7 @@ def read_data(bot: botPy.Bot):
def write_data(bot: botPy.Bot):
bot.data["TEST"] = True
bot.data_f.seek(0)
json.dump(bot.data, bot.data_f, indent=2)
bot.data_f.truncate()