From 60ba711c3a8cfbb64cc7642042f4204ff552cb6f Mon Sep 17 00:00:00 2001 From: sD Date: Fri, 20 Dec 2019 02:04:52 +0100 Subject: implement FL, move HDID to info loglevel --- webAO/client.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index 4a5d643..f6257e6 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -51,7 +51,7 @@ const fp = new Fingerprint({ // An emulated, semi-unique HDID that is generally safe for HDID bans. const hdid = fp.get(); -console.log(`Your emulated HDID is ${hdid}`); +console.info(`Your emulated HDID is ${hdid}`); let lastICMessageTime = new Date(0); @@ -129,6 +129,7 @@ class Client extends EventEmitter { this.on("CI", this.handleCI.bind(this)); this.on("SC", this.handleSC.bind(this)); this.on("EI", this.handleEI.bind(this)); + this.on("FL", this.handleFL.bind(this)); this.on("LE", this.handleLE.bind(this)); this.on("EM", this.handleEM.bind(this)); this.on("SM", this.handleSM.bind(this)); @@ -820,6 +821,14 @@ class Client extends EventEmitter { // TODO: webAO doesn't have this feature yet } + /** + * With this the server tells us which features it supports + * @param {Array} args list of features + */ + handleFL(args) { + console.info(args); + } + /** * Received when the server announces its server info, * but we use it as a cue to begin retrieving characters. -- cgit