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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

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

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 89.6%Language:CSS 7.7%Language:HTML 2.7%