Skip to main content

Counters

Counters are an easy way to keep track of certain things in your stream. They can be used to keep track of how many times you've died in a game, or how many times you've missed a cannon minion in league of legends.

You can manage your counters in the StreamElements Dashboard or use the variable directly from chat listed below.

Variables

  • getcount - Retrieves the current count of the counter. For more information, refer to the getcount documentation.
  • count Increments or decrements the counter. For more information, refer to the count documentation.

Examples

Add counter command

Let's start by adding a new counter command for missed cannons in league of legends:

  1. Create a new command by typing !cmd add cannon ${count cannon}
  2. Now when you type !cannon in chat, it will increment the counter by 1.

Image


Get the current count

Let's create another command to see how many cannons you've missed (Without incrementing the counter):

  1. Create a new command by typing !cmd add missedcannons ${getcount cannon}
  2. Now when you type !missedcannons in chat, it will show you the current count of the cannon counter.

Image