Fixed Echobox loading mistake

This commit is contained in:
Izwzyzx 2023-09-03 00:14:46 -05:00
parent 27dd8cadc9
commit 2035710bf7

View File

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