Fixed Echobox loading mistake
This commit is contained in:
parent
27dd8cadc9
commit
2035710bf7
@ -62,7 +62,7 @@ class Onequestionmark {
|
|||||||
|
|
||||||
if (FileSystem.exists("echobox-db.json")) {
|
if (FileSystem.exists("echobox-db.json")) {
|
||||||
Sys.println('[${timestamp()}] Found echobox-db.json, loading');
|
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 {
|
} else {
|
||||||
Sys.println('[${timestamp()}] Did not find echobox-db.json, generating');
|
Sys.println('[${timestamp()}] Did not find echobox-db.json, generating');
|
||||||
File.saveContent("echobox-db.json", Json.stringify(echoboxDB, "\t"));
|
File.saveContent("echobox-db.json", Json.stringify(echoboxDB, "\t"));
|
||||||
@ -76,6 +76,7 @@ class Onequestionmark {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function onReady() {
|
public static function onReady() {
|
||||||
|
Sys.sleep(1);
|
||||||
Sys.println('[${timestamp()}] Bot is online');
|
Sys.println('[${timestamp()}] Bot is online');
|
||||||
//Endpoints.sendMessage(settings.devchannel, {content:"onequestionmark-chat alpha test is now running"}, null, false);
|
//Endpoints.sendMessage(settings.devchannel, {content:"onequestionmark-chat alpha test is now running"}, null, false);
|
||||||
botInfo = Endpoints.getCurrentUser();
|
botInfo = Endpoints.getCurrentUser();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user