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,
 | 
					  nitter: 0x1da1f2,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const PLATFORM_ICONS = {
 | 
				
			||||||
 | 
					  twitter: Icons.fedimbed.twitter,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const BSKY_DOMAINS = [
 | 
					const BSKY_DOMAINS = [
 | 
				
			||||||
  "bsky.app",
 | 
					  "bsky.app",
 | 
				
			||||||
  "bskye.app",
 | 
					  "bskye.app",
 | 
				
			||||||
| 
						 | 
					@ -1422,14 +1426,15 @@ async function processUrl(msg, url, spoiler = false, command = false) {
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const footerIcon = PLATFORM_ICONS[platformName.toLowerCase()];
 | 
				
			||||||
  const footer = {
 | 
					  const footer = {
 | 
				
			||||||
    type: 9,
 | 
					    type: 9,
 | 
				
			||||||
    components: [
 | 
					    components: [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        type: 10,
 | 
					        type: 10,
 | 
				
			||||||
        content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${platformName} \u2022 <t:${Math.floor(
 | 
					        content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${
 | 
				
			||||||
          new Date(timestamp).getTime() / 1000
 | 
					          footerIcon ? footerIcon + " " : ""
 | 
				
			||||||
        )}:F>`,
 | 
					        }${platformName} \u2022 <t:${Math.floor(new Date(timestamp).getTime() / 1000)}:F>`,
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    accessory: {
 | 
					    accessory: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -583,6 +583,7 @@ module.exports.Icons = {
 | 
				
			||||||
    bookmark: "<:i:1362908185781997719>",
 | 
					    bookmark: "<:i:1362908185781997719>",
 | 
				
			||||||
    views: "<:i:1362909322597765270>",
 | 
					    views: "<:i:1362909322597765270>",
 | 
				
			||||||
    bluesky: "<:i:1362895346690424832>",
 | 
					    bluesky: "<:i:1362895346690424832>",
 | 
				
			||||||
 | 
					    twitter: "<:i:1362955359337185410>",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue