Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import emoji in the hackiest way possible #11

Merged
merged 5 commits into from
Jun 6, 2023
Merged

Conversation

PeterGrace
Copy link
Owner

This PR implements #10 in a very weird-ish and hacky way. It works, but its not pretty and is an MVP

I uploaded all the emoji to my minio server. When a user executes /import-emoji <emojiname> s3 is searched for that path and if it sees it, it grabs it, encodes it to base64 per discord's requirements and shoves it up to discord for the server to use.

fun fact: discord doesn't let you have hyphens in an emoji name, so when uploading it I also convert hyphens to underscore in the emoji name.

Things that would make this better:

  • search?
  • have an optional second argument to give a url to an image and hot-load it from there (this would probably be easy and super useful for people.)

@PeterGrace PeterGrace requested a review from gshipilov May 13, 2023 02:29
@PeterGrace PeterGrace merged commit 4ef9e6e into main Jun 6, 2023
@PeterGrace PeterGrace deleted the peter_grace_add_emoji branch June 6, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant