From 898a3d5af7d8bc4578786f1099d6fe092573d112 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 21 Jun 2023 09:20:44 +0200 Subject: Updated 2 files (automated) --- includes/components/details.inc | 38 ++++++++++++++++++++++++++++++++++++++ includes/external/matrix/index.js | 16 ++++++++++++++++ 2 files changed, 54 insertions(+) (limited to 'includes') diff --git a/includes/components/details.inc b/includes/components/details.inc index 6b8ea64..288f540 100644 --- a/includes/components/details.inc +++ b/includes/components/details.inc @@ -1,4 +1,42 @@ + +
" style="grid-template-columns: repeat(3, 1fr); background-color: ; margin-left: -20px; margin-right: -20px; padding: 10px 20px;"> +
+ " alt="" style="background-color:rgba(255, 255, 255, .125);width:128px;height:128px;border-radius:5px;"> +
+
+

Hazel Stardawn

+
+

This pony takes a human appearance when she is around Leah or other humans in Cloudburst System. However, her pony appearance remains her preferred one and she will use it with other creatures and pony members of Cloudburst System.

+
+
+
+
+ + + +
" style="grid-template-columns: repeat(3, 1fr); background-color: ; margin-left: -20px; margin-right: -20px;">

diff --git a/includes/external/matrix/index.js b/includes/external/matrix/index.js index e699d0d..8e6f0b8 100644 --- a/includes/external/matrix/index.js +++ b/includes/external/matrix/index.js @@ -108,6 +108,22 @@ client.once("sync", async function (state, prevState, res) { } }); + if (user === "raindrops" && name === "Hazy Stardawn") { + child_process.execSync("convert " + avatar1 + " -set colorspace Gray -separate -average /tmp/chm-" + user + ".webp"); + + let res2 = await client.uploadContent(fs.readFileSync("../../../assets/uploads/hazy.png")); + + await axios.put("https://chat.equestria.dev/_matrix/client/r0/rooms/" + encodeURIComponent(require('../../app.json')['matrix']['room']) + "/state/m.room.member/%40raindrops%3Aequestria.dev", { + avatar_url: res2.content_uri, + displayname: "Hazel Stardawn", + membership: "join" + }, { + headers: { + Authorization: "Bearer " + token + } + }); + } + process.exit(0); } else { console.log(state); -- cgit