From b3536230f754e833903d27dc1904219e54ca5b63 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 18 Apr 2025 19:00:49 -0600 Subject: [PATCH] fedimbed: birb icon --- src/modules/fedimbed.js | 11 ++++++++--- src/util/constants.js | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index fd84ce8..05b37f5 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -52,6 +52,10 @@ const PLATFORM_COLORS = { nitter: 0x1da1f2, }; +const PLATFORM_ICONS = { + twitter: Icons.fedimbed.twitter, +}; + const BSKY_DOMAINS = [ "bsky.app", "bskye.app", @@ -1422,14 +1426,15 @@ async function processUrl(msg, url, spoiler = false, command = false) { }); } + const footerIcon = PLATFORM_ICONS[platformName.toLowerCase()]; const footer = { type: 9, components: [ { type: 10, - content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${platformName} \u2022 `, + content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${ + footerIcon ? footerIcon + " " : "" + }${platformName} \u2022 `, }, ], accessory: { diff --git a/src/util/constants.js b/src/util/constants.js index d213135..231f9ea 100644 --- a/src/util/constants.js +++ b/src/util/constants.js @@ -583,6 +583,7 @@ module.exports.Icons = { bookmark: "<:i:1362908185781997719>", views: "<:i:1362909322597765270>", bluesky: "<:i:1362895346690424832>", + twitter: "<:i:1362955359337185410>", }, };