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"){
|
if(args.type.toUpperCase() == "TWITTER"){
|
||||||
targetEmoji = emojiCodepoint[0].replace('-fe0f', '')
|
targetEmoji = emojiCodepoint[0].replace('-fe0f', '')
|
||||||
}
|
}
|
||||||
if(args.type.toUpperCase() == "FLUENT"){
|
let emojiUrl;
|
||||||
targetEmoji = emojiCodepoint[0].replace('-fe0f', '')
|
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{
|
try{
|
||||||
let e = await superagent.get(emojiUrl)
|
let e = await superagent.get(emojiUrl)
|
||||||
}catch(e){
|
}catch(e){
|
||||||
|
|
|
@ -53,8 +53,8 @@ const Static = Object.freeze({
|
||||||
HOST: Hosts.emoji,
|
HOST: Hosts.emoji,
|
||||||
|
|
||||||
TWITTER: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` },
|
TWITTER: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` },
|
||||||
FLUENT: (codepoint) => { return `fluent-6vbne6euaxy2y9f98iub2xtr/${codepoint}.png` },
|
FLUENT: (codepoint) => { return `` },
|
||||||
//APPLE: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` }, // TODO: host these in-house
|
APPLE: (codepoint) => { return `` },
|
||||||
MICROSOFT: (codepoint) => { return `microsoft-ZzRAzYE6LgxVTrQ5rvL7nLyC/${codepoint}.png` },
|
MICROSOFT: (codepoint) => { return `microsoft-ZzRAzYE6LgxVTrQ5rvL7nLyC/${codepoint}.png` },
|
||||||
EMOJIONE: (codepoint) => { return `emojione-XghVAypW8jttjFL2tQFb2z7n/${codepoint}.png` },
|
EMOJIONE: (codepoint) => { return `emojione-XghVAypW8jttjFL2tQFb2z7n/${codepoint}.png` },
|
||||||
GOOGLE: (codepoint) => { return `google-tqzSNjYw8MVMYfSBLTLTFgmw/${codepoint}.png` },
|
GOOGLE: (codepoint) => { return `google-tqzSNjYw8MVMYfSBLTLTFgmw/${codepoint}.png` },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue