How to use the unemojify function from node-emoji
Find comprehensive JavaScript node-emoji.unemojify code examples handpicked from public code repositorys.
GitHub: hushsbay/sendjay_tiny
107 108 109 110 111 112 113 114 115 116
_sql = "UPDATE " + com.tbl.roomdtl + " SET STATE = '' WHERE ROOMID = '" + _roomid + "' AND STATE = '2' " await wsmysql.query(conn, _sql, null) } let bodyForInsert if (obj.type == 'talk' && ws.util.chkEmoji(obj.body)) { bodyForInsert = emoji.unemojify(obj.body) if (ws.util.utf8StrByteLength(bodyForInsert) > com.cons.max_msg_len) throw new Error('Max size of talk is ' + com.cons.max_msg_len + '. Now is ' + ws.util.utf8StrByteLength(bodyForInsert) + '.') } else { bodyForInsert = obj.body }
1
3
2
307 308 309 310 311 312 313 314 315 316
} if((Object.values(settings.channels.bridge).indexOf(message.channel.id) != -1 || message.channel.id == settings.channels.global) && message.author.id != bot.user.id) { if(message.content.trim()) { if(global) { writeGlobal("msg\t" + name + "\t" + emoji.unemojify(message.cleanContent).replace("\n", " ") + "\tglobal\r\n"); return; } for(var x in TCPclients) {
2
1
0
+ 3 other calls in file
334 335 336 337 338 339 340 341 342 343
return 26 * Math.floor(Math.random() * (hi-lo+1) + lo) + c - p; } // Split the emoji string into an emoji list function emojiSplit(key) { var unemoji = emoji.unemojify(key); var emojis = []; var regex = /:([^:]+):/g; var match = regex.exec(unemoji);
0
1
0
51 52 53 54 55 56 57 58 59 60 61
async function countReactions(reaction, author, authorFilter) { let reactions = []; for (let [snowflake, innerReaction] of reaction.message.reactions.cache) { let emoteName = emoji.unemojify(innerReaction.emoji.toString()).toLowerCase().trim(); let reactionObj = { name: emoteName, ids: [] }; let reactionUsers = await innerReaction.users.fetch();
0
0
0
GitHub: kzxpr/fed-plugin
231 232 233 234 235 236 237 238 239 240
function encodeStr(rawStr){ /*var encodedStr = rawStr.replace(/[\u00A0-\u9999<>\&]/g, function(i) { //return '&#'+i.charCodeAt(0)+';'; return '&#'+i.codePointAt(0)+';'; });*/ const encodedStr = emoji.unemojify(rawStr) //const encodedStr = punycode.toUnicode(rawStr); return encodedStr; }
0
0
0
22 23 24 25 26 27 28 29 30 31
images.forEach(image => { let img = null; twemoji.parse(image, (icon, options) => { img = ''.concat(twemoji.base, options.size, '/', icon, options.ext); }); const str = emoji.unemojify(image); categories[key].emojis.push({ emoji: image, str: str, img: img
0
0
0
60 61 62 63 64 65 66 67 68 69
const rowIndex = b[0]; const colIndex = b[1]; const flatIndex = rows * (rowIndex + 1) - 1 - (MAX_COLUMNS - colIndex + 1); mat.subset(math.index(rowIndex, colIndex), { asset: emoji.unemojify(emojis[flatIndex]).split(':')[1], x: colIndex, y: rowIndex }); });
0
0
0
node-emoji.get is the most popular function in node-emoji (2342 examples)