Notify event for photon bots

This commit is contained in:
Natsumi
2022-01-26 08:39:05 +13:00
parent 097d48250b
commit af114d7183

View File

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