a not yet fully functional matrix bot that will upload image files from the emotes/ directory to a matrix homeserver and create a custom m.image_pack event to make it available as custom emoji/stickerpack.
We want to add a LARGE amount of emotes to a room, and the clients we've tried to use just all crashed,
the way we wrote this script, we get a `Failed to process emoji pack: the server returned an error: [413 / M_TOO_LARGE] M_TOO_LARGE: Message is too long` - too eepy to debug as of writing this.
\ No newline at end of file
A smol (somewhat shitty) matrix bot meant to add a huuge amount of custom emotes to a room.
Usage:
* start like ./emowojí_bot <homeserver-url><username><password>
* invite the bot to a room
* type `!add <desired_image_pack_name>`
* let it to its thing
It worked on our conduit server and nheko as a client when adding a smol amount of emotes,
but when we tried to process hundreds of megabyte's we quickly ran into spec limitations due to the max message length being 64kB or something,
so for this to work the events need to be split up in some way - from what we can see now resulting in having a bunch of image packs in the end.