GitHunt
AF

AFoeee/random-image-timer-se-widget

A StreamElements custom widget, which randomly picks images from an image pool at predetermined time intervals and displays them.

Random Image Timer

This StreamElements custom widget can be used to visualize some sorts of content gamification.
An example might be the display of

  • a self-imposed, changing class focus in a RPG.
  • the current item in a randomized giveaway.

Special thanks to Laiyart for the idea.

Description of operation:

The widget randomly picks images from an image pool at predetermined time intervals and displays them.
It has also options to limit said randomness to a certain degree.

See also this demonstration video.

Chat command types:

  • !img random

    Swaps the current image with a random one.

  • !img n

    Swaps the current image with the nth video of the pool.
    The placeholder n can be a number between 1 and the total number of images in the pool.

  • !img timer pause

    Pauses the timer.

  • !img timer resume

    Unpauses the timer.

  • !img timer reset

    Resets the timer to initial time span.

  • !img timer h:m:s

    Sets the timer to the specified amount of time.

    A single number is interpreted as seconds.
    Two numbers are interpreted as minutes and seconds and so on.

Used libraries:

Languages

JavaScript89.6%CSS7.7%HTML2.7%

Contributors

GNU Affero General Public License v3.0
Created June 12, 2022
Updated August 21, 2024
AFoeee/random-image-timer-se-widget | GitHunt