fluent emoji, apple emoji

This commit is contained in:
derpystuff 2022-07-17 17:11:17 +02:00
parent 295111f042
commit aa5a4cdfbe
2 changed files with 14 additions and 5 deletions

View file

@ -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){