From af114d7183826057ede736414a2211bde952f606 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 26 Jan 2022 08:39:05 +1300 Subject: [PATCH] Notify event for photon bots --- html/src/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 74b6f991..bba46052 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -8333,6 +8333,14 @@ speechSynthesis.getVoices(); color: 'yellow', created_at: new Date().toJSON() }); + var entry = { + created_at: new Date().toJSON(), + type: 'Event', + data: `${text} - ${this.getDisplayNameFromPhotonId(photonId)} (${this.getUserIdFromPhotonId(photonId)})` + }; + this.queueGameLogNoty(entry); + this.addGameLog(entry); + database.addGamelogEventToDatabase(entry); } photonBots.unshift(id); } @@ -8906,6 +8914,14 @@ speechSynthesis.getVoices(); color: 'yellow', created_at: gameLogDate }); + var entry = { + created_at: new Date().toJSON(), + type: 'Event', + data: `${text} - ${this.getDisplayNameFromPhotonId(photonId)} (${this.getUserIdFromPhotonId(photonId)})` + }; + this.queueGameLogNoty(entry); + this.addGameLog(entry); + database.addGamelogEventToDatabase(entry); } };