Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

LOTTIE discord default sticker fails to retrieve

Open lorenzo132 opened this issue 3 years ago • 5 comments

Bot Version

v3.11.0-dev1

How are you hosting Modmail?

Systemd

Error Logs

Screenshots

Additional Information

https://discord.com/channels/359577438101176320/911664310487486576/911668656033919038

lorenzo132 avatar Nov 20 '21 17:11 lorenzo132

can explore https://pypi.org/project/lottie/ to convert lottie -> gif

fourjr avatar Nov 20 '21 17:11 fourjr

Hey, after exploring how we can handle this... here are a couple options:

  1. Generate a GIF within Modmail (takes ~10 seconds)
  2. Pre-generate all GIFs and store it in Modmail/another external repo
  3. Only generate the first frame (takes ~0.08 seconds)

I'm personally in favour of the 3rd option, 10 seconds for sending a message would definitely take too long and pre-generating gifs require constant updating on our side. Thoughts?

Does anyone know how often discord updates these stickers?

fourjr avatar Nov 21 '21 08:11 fourjr

Hey, after exploring how we can handle this... here are a couple options:

  1. Generate a GIF within Modmail (takes ~10 seconds)
  2. Pre-generate all GIFs and store it in Modmail/another external repo
  3. Only generate the first frame (takes ~0.08 seconds)

I'm personally in favour of the 3rd option, 10 seconds for sending a message would definitely take too long and pre-generating gifs require constant updating on our side. Thoughts?

Does anyone know how often discord updates these stickers?

Users can also send custom stickers if they have nitro so maintaining would be difficult (Lottie is locked to partnered / verified servers), I agree with the 3rd option but just generate a png instead of a gif if it’s possible or 3rd as is works imo.

TheDiscordHistorian avatar Nov 21 '21 08:11 TheDiscordHistorian

If partnered servers can do LOTTIE as well, best to just generate a thumbnail.

fourjr avatar Nov 21 '21 08:11 fourjr

Hey, after exploring how we can handle this... here are a couple options:

  1. Generate a GIF within Modmail (takes ~10 seconds)
  2. Pre-generate all GIFs and store it in Modmail/another external repo
  3. Only generate the first frame (takes ~0.08 seconds)

I'm personally in favour of the 3rd option, 10 seconds for sending a message would definitely take too long and pre-generating gifs require constant updating on our side. Thoughts?

Does anyone know how often discord updates these stickers?

would be nice to make it a config option, to either have it as opt 1 or 3

lorenzo132 avatar Nov 21 '21 13:11 lorenzo132