mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
fluent emoji, apple emoji
This commit is contained in:
parent
295111f042
commit
aa5a4cdfbe
2 changed files with 14 additions and 5 deletions
|
@ -80,10 +80,19 @@ module.exports = {
|
|||
if(args.type.toUpperCase() == "TWITTER"){
|
||||
targetEmoji = emojiCodepoint[0].replace('-fe0f', '')
|
||||
}
|
||||
if(args.type.toUpperCase() == "FLUENT"){
|
||||
targetEmoji = emojiCodepoint[0].replace('-fe0f', '')
|
||||
let emojiUrl;
|
||||
switch(args.type.toUpperCase()){
|
||||
case "FLUENT":
|
||||
emojiUrl = `https://raw.githubusercontent.com/justsomederpystuff/fluent-emoji/main/emoji/${targetEmoji}.png`
|
||||
break;
|
||||
case "APPLE":
|
||||
emojiUrl = `https://raw.githubusercontent.com/iamcal/emoji-data/master/img-apple-160/${targetEmoji}.png`
|
||||
break;
|
||||
default:
|
||||
emojiUrl = Static.HOST + Static[args.type.toUpperCase()](targetEmoji)
|
||||
break;
|
||||
}
|
||||
let emojiUrl = Static.HOST + Static[args.type.toUpperCase()](targetEmoji)
|
||||
|
||||
try{
|
||||
let e = await superagent.get(emojiUrl)
|
||||
}catch(e){
|
||||
|
|
|
@ -53,8 +53,8 @@ const Static = Object.freeze({
|
|||
HOST: Hosts.emoji,
|
||||
|
||||
TWITTER: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` },
|
||||
FLUENT: (codepoint) => { return `fluent-6vbne6euaxy2y9f98iub2xtr/${codepoint}.png` },
|
||||
//APPLE: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` }, // TODO: host these in-house
|
||||
FLUENT: (codepoint) => { return `` },
|
||||
APPLE: (codepoint) => { return `` },
|
||||
MICROSOFT: (codepoint) => { return `microsoft-ZzRAzYE6LgxVTrQ5rvL7nLyC/${codepoint}.png` },
|
||||
EMOJIONE: (codepoint) => { return `emojione-XghVAypW8jttjFL2tQFb2z7n/${codepoint}.png` },
|
||||
GOOGLE: (codepoint) => { return `google-tqzSNjYw8MVMYfSBLTLTFgmw/${codepoint}.png` },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue