It even supports the emoji with skin tone variations! □□□□įor now, I just left the custom emoji unreplaced, since they are images in Slack and there isn't a good way to send image data in IRC. Chinese social media giant Tencent Holdings Ltd said on Tuesday that it will fix a translation bug on its chat app WeChat that sends out distinct non-sequitors when country flags are. I had to use a separate library to translate the unicode hex values to an actual unicode string. Thankfully, Slack publishes the data they use for their emoji names, so I basically added that to the gateway and look up the mapping there. It was actually a surprisingly small amount of code overall. Today I updated the gateway to translate those emoji text to unicode so that they appear as native emoji in IRC. Previously, the gateway would just send the text through to IRC, which doesn't look great for IRC users. For example, □ is :heart_eyes_cat: when it comes through the API. ![]() ![]() When someone types an emoji in Slack, it shows up in the API as a text description surrounded by colons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |