yuv418 / emotes

Upload and use custom emotes on Discord without Nitro and Telegram without hassle using memorable URLs
1 stars 2 forks source link

Global/public emotes implementation + API #12

Closed cdknight closed 4 years ago

cdknight commented 4 years ago

Right now, there is no way to fetch all global emotes and display them, since there is no API for it. The only way to get a list of global emotes would be to look at the repository or guess, which is not precisely the nicest thing in the world. The easiest way to do this would be to scan all the directories for emotes and list them out.

API route to add: GET /api/emotes?scope=global For this route, an API key should not be required since anyone can access and display this set.


We should also add a public field to the Emotes model and migrate that out so we can have public/private emote separation, in which case public emotes would be publicly visible to anyone who uses the /api/emotes?scope=global command. In this case, we will have to require additional moderation, such as admin approval after human review or using image recognition to identify the image as acceptable or not. Both would work, but image recognition may be more work and might require GPU passthrough to the prod server, which may be an issue.

cdknight commented 4 years ago

Update: A global emote API was implemented in commits cefe264a16ec888453af3b92d006f47e78717426 and 0e06a7824df652e5750574d52990c2c653e5d143.

cdknight commented 4 years ago

This was fixed a long time ago. Closing.