nolanlum / notskype-qdb

0 stars 1 forks source link

Emoji support #52

Open connected-mhuanghobbs opened 6 years ago

connected-mhuanghobbs commented 6 years ago

render :colon-normalized-emoji: to emoji images. Custom emoji support would be nice too :/

connected-mhuanghobbs commented 6 years ago

This looks pretty brittle but

EMOJI_URL=$(curl https://unhaltable.slack.com | grep script | grep emoji | sed 's/.*src="\([^"]*\)".*/\1/')
curl $EMOJI_URL > emoji.js
cat emoji.js | sed 's/.*\.prototype\.data=//' | sed 's/\(}\).*/\1/' > emoji2.js

This can fetch the default emoji dictioanry from slack, which we could then source control.