Open mster opened 4 years ago
EXAMPLE: 😀 -> 😂 -> 😀 -> 😂 -> etc.
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?
COMMAND STRUCTURE: tbd
Great idea! 🚀
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