Discord has an emoji limit of 50, but I have like 22,000 that I want to use??? c'mon Discord, how much could one extra server cost? Anyway, this project uses emojme (i know, i know, don't you do anything else?) to create a json blob of emoji names and urls, then with a little Discord bot (:itme: amiright) it listens on messages with unpopulated emoji, e.g. "Hey where are all my emoji :clamboozled:" and pops in the slack url for that particular emoji, which Discord graciously opens.
This relies heavily on the fact that Slack don't protect their emoji behind any sort of authorization, any organizations emoji are theoretically out there in the ether, waiting to be scraped, and I am waiting to be paid for that work.
This is crippled heavily by the fact that an emoji's UUID isn't easily reversible. Like, cmon, https://emoji.slack-edge.com/T7ZGGRLGN/clamboozled/40721258d4758e1a.png? What is 40721258d4758e1a
? There are letters now? There are even more permutations than when I last complained about this. But anyway, as long as you can get links to emoji you can use links to emoji, so that's what I've done.
It's worth noting that this requires a redeploy every time you update your emoji list (unlike my hubot projects), but idc I did this in an afternoon.
- Ruby of some description
- Node 10, but just to generate the emojilist don't even trip
jq
? Do people now have jq? Again just for the generation
- set up your emoji list.
- Either make a json object by hand (you pleb) of '{"emojiName": "url"}', or
- run
generate-emojilist.sh $subdomain $token
$subdomain
being your slack subdomain, as inbutts.slack.com
(sell this to me please), whatever it says in the upper left of your slack browser.$token
is your slack user token, they can't keep making me explain how to get this
- Deploy this bot somewhere. Your computer. Your employer's computer. Your neighbor's router.
bundle exec main.rb
- You will need to set your DISCORD_BOT_TOKEN and DISCORD_BOT_CLIENT_ID environment variables to get that workin.
- Heroku works great for this
- Talk to emojibot. Share your secrets with them.
- Send me your emojilists. Information wants to be free.
Bestow the following permissions on your bot for it to function:
- Send Messages - For when you want to list emoji, etc
- Embed Links - For when you want to expand emoji to their source urls
- Manage Emojis - Adding and deleting Emoji - Yes, this will delete your emoji if you run out.