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();