update emoji

This commit is contained in:
crimx 2019-08-15 01:42:57 +08:00
parent c95e611780
commit 73205070cf
2 changed files with 22 additions and 17 deletions

View file

@ -427,6 +427,9 @@
"1f3e7"
]
},
"atom": {
"src": "https://github.githubassets.com/images/icons/emoji/atom.png?v8"
},
"atom_symbol": {
"src": "https://github.githubassets.com/images/icons/emoji/unicode/269b.png?v8",
"codepoints": [
@ -2639,6 +2642,9 @@
"1f50c"
]
},
"electron": {
"src": "https://github.githubassets.com/images/icons/emoji/electron.png?v8"
},
"elephant": {
"src": "https://github.githubassets.com/images/icons/emoji/unicode/1f418.png?v8",
"codepoints": [
@ -7110,6 +7116,19 @@
"1f1f9"
]
},
"sassy_man": {
"src": "https://github.githubassets.com/images/icons/emoji/unicode/1f481-2642.png?v8",
"codepoints": [
"1f481",
"2642"
]
},
"sassy_woman": {
"src": "https://github.githubassets.com/images/icons/emoji/unicode/1f481.png?v8",
"codepoints": [
"1f481"
]
},
"satellite": {
"src": "https://github.githubassets.com/images/icons/emoji/unicode/1f4e1.png?v8",
"codepoints": [
@ -9379,17 +9398,5 @@
"codepoints": [
"1f4a4"
]
},
"atom": {
"src": "https://github.githubassets.com/images/icons/emoji/atom.png?v8"
},
"electron": {
"src": "https://github.githubassets.com/images/icons/emoji/electron.png?v8"
},
"message": {
"src": "API rate limit exceeded for 35.188.73.34. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"
},
"documentation_url": {
"src": "https://developer.github.com/v3/#rate-limiting"
}
}
}

View file

@ -30,18 +30,16 @@ request({
return emojis
}, {})
const emojis = _.assign({}, require('./emojis.json'), latestEmojis)
// update local backup
fs.writeFile(
path.join(__dirname, 'emojis.json'),
JSON.stringify(emojis, null, ' '),
JSON.stringify(latestEmojis, null, ' '),
function (err) {
if (err) {
console.warn(err)
process.exit(1)
} else {
console.log(`Update ${Object.keys(emojis).length} emojis`)
console.log(`Update ${Object.keys(latestEmojis).length} emojis`)
}
},
)