From 81f4d57775853615633af0f3c8f7a1f139a64265 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 24 May 2023 21:59:15 +0200 Subject: Updated 2 files (automated) --- includes/external/matrix/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/external') diff --git a/includes/external/matrix/index.js b/includes/external/matrix/index.js index cd26a87..e699d0d 100644 --- a/includes/external/matrix/index.js +++ b/includes/external/matrix/index.js @@ -27,6 +27,7 @@ client.once("sync", async function (state, prevState, res) { let system = require('../../data/' + (user === "raindrops" ? "gdapd" : (user === "cloudburst" ? "ynmuc" : "other")) + "/general.json"); let fronters = require('../../data/' + (user === "raindrops" ? "gdapd" : (user === "cloudburst" ? "ynmuc" : "other")) + "/fronters.json"); + let members = require('../../data/' + (user === "raindrops" ? "gdapd" : (user === "cloudburst" ? "ynmuc" : "other")) + "/members.json"); console.log(system.name); console.log(fronters.members.length + " member(s) at front"); @@ -35,6 +36,9 @@ client.once("sync", async function (state, prevState, res) { let avatar1 = system.avatar_url; let avatar2 = null; + let fronter1 = null; + let fronter2 = null; + if (fronters.members.length === 1 || (fronters.members.length === 2 && (fronters.members[0].name === "scootaloo" && fronters.members[1].name === "rainbowdash"))) { name = fronters.members[0].display_name ?? fronters.members[0].name; avatar1 = fronters.members[0].avatar_url ?? avatar1; -- cgit