From 2035710bf797874973ffecc2f81e5596aaf7f572 Mon Sep 17 00:00:00 2001 From: Izwzyzx <184772711+Izwzyzx@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:14:46 -0500 Subject: [PATCH] Fixed Echobox loading mistake --- Onequestionmark.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Onequestionmark.hx b/Onequestionmark.hx index d88d7de..c9ec9d3 100644 --- a/Onequestionmark.hx +++ b/Onequestionmark.hx @@ -62,7 +62,7 @@ class Onequestionmark { if (FileSystem.exists("echobox-db.json")) { Sys.println('[${timestamp()}] Found echobox-db.json, loading'); - yesnoDB = Json.parse(File.getContent("echobox-db.json")); + echoboxDB = Json.parse(File.getContent("echobox-db.json")); } else { Sys.println('[${timestamp()}] Did not find echobox-db.json, generating'); File.saveContent("echobox-db.json", Json.stringify(echoboxDB, "\t")); @@ -76,6 +76,7 @@ class Onequestionmark { } public static function onReady() { + Sys.sleep(1); Sys.println('[${timestamp()}] Bot is online'); //Endpoints.sendMessage(settings.devchannel, {content:"onequestionmark-chat alpha test is now running"}, null, false); botInfo = Endpoints.getCurrentUser();