fedimbed: birb icon
This commit is contained in:
parent
9d6c9450ce
commit
b3536230f7
2 changed files with 9 additions and 3 deletions
|
@ -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 <t:${Math.floor(
|
||||
new Date(timestamp).getTime() / 1000
|
||||
)}:F>`,
|
||||
content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${
|
||||
footerIcon ? footerIcon + " " : ""
|
||||
}${platformName} \u2022 <t:${Math.floor(new Date(timestamp).getTime() / 1000)}:F>`,
|
||||
},
|
||||
],
|
||||
accessory: {
|
||||
|
|
|
@ -583,6 +583,7 @@ module.exports.Icons = {
|
|||
bookmark: "<:i:1362908185781997719>",
|
||||
views: "<:i:1362909322597765270>",
|
||||
bluesky: "<:i:1362895346690424832>",
|
||||
twitter: "<:i:1362955359337185410>",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue