Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/chatbot/counters/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"label": "Counters"
}
Binary file added docs/chatbot/counters/img/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/chatbot/counters/img/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/chatbot/counters/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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](https://streamelements.com/dashboard/bot/counters) 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](../variables/getcount.md).
- `count` Increments or decrements the counter. For more information, refer to the [count documentation](../variables/count.md).

## 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 cannons ${count cannons}`
2. Now when you type `!cannons` in chat, it will increment the counter by 1.

![Image](img/0.png)

---

### See 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 cannons}`
2. Now when you type `!missedcannons` in chat, it will show you the current count of the cannon counter.

![Image](img/1.png)