mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue