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.
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.