tlaskey / JanMichaelBot

Can I get a Jan Michael Vincent?! Discord Bot
Other
2 stars 0 forks source link

Feature: Live Emojis #43

Open mster opened 4 years ago

mster commented 4 years ago

PROPOSAL: Allow users to post a live emoji that switches between two or more states via editing the original message. This would give the illusion of animation similar to a GIF switching between frames.

EXAMPLE: 😈 -> 👿 -> 😈 -> 👿 -> etc.

CONSIDERATIONS: Having the bot do this for EVERY live emoji FOREVER is expensive and dumb, since eventually messages get lost in the fray. Have the bot switch the emoji's state for a maximum amount of times, say 1000 iterations.

One would need to track the original message ID, the current iteration, the maximum iterations, the sequence of "frames", and the current index in the sequence. You could probably get away from storing an index by calculating on the fly using the modulus operator i.e. current_iter % sequence.size

mster commented 4 years ago

EXAMPLE: 😀 -> 😂 -> 😀 -> 😂 -> etc.

mster commented 4 years ago

CONSIDERATIONS: Allow users to specify the sequence of emojis. Also, provide a emojis which include predefined sequences for ease of use.

How often should these live emojis update? Once per second? Per three seconds?

mster commented 4 years ago

COMMAND STRUCTURE: tbd

tlaskey commented 4 years ago

Great idea! 🚀