From 73205070cfaf0a2e1eb226dfab730b9209b67354 Mon Sep 17 00:00:00 2001 From: crimx Date: Thu, 15 Aug 2019 01:42:57 +0800 Subject: [PATCH] update emoji --- emojis.json | 33 ++++++++++++++++++++------------- update-emojis.js | 6 ++---- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/emojis.json b/emojis.json index 1915f5e..cf7ab15 100644 --- a/emojis.json +++ b/emojis.json @@ -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" } -} +} \ No newline at end of file diff --git a/update-emojis.js b/update-emojis.js index cbee39d..cc5e8ea 100644 --- a/update-emojis.js +++ b/update-emojis.js @@ -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`) } }, )