Skip to content

jackellenberger/infinite-emoji-discord-bot

Repository files navigation

Infinite Emoji - Discord Bot

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.

Requirements

  • 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

Usage

  1. set up your emoji list.
    • Either make a json object by hand (you pleb) of '{"emojiName": "url"}', or
    • run generate-emojilist.sh $subdomain $token
  2. 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
  3. Talk to emojibot. Share your secrets with them.
  4. Send me your emojilists. Information wants to be free.

Permissions

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.

About

DiscordBot for forcibly inserting small images into a messaging client for gamers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published