# Counting

URL: https://zerodev.ca/docs/medusa/modules/counting

> A counting game where members count up one number at a time and chase the channel record.



Members take turns posting the next number in a counting channel. Every channel keeps its own count and record, so you can run several games at once.

## Rules

* Each message must be exactly one more than the last count.
* With **Allow Math Expressions** on, members can post `+`, `-`, `*`, `/`, `^`, `%` and brackets, such as `(2+3)*2`.
* With **Allow Consecutive Counting** off, the same member cannot count twice in a row.
* Messages that are not a number or a valid expression are ignored.
* A correct count gets the success reaction. Beating the record posts a message.

## Mistakes

A wrong number, or counting twice in a row, gets the failure reaction and then the **Failure Action**:

| Action               | What happens                                                   |
| -------------------- | -------------------------------------------------------------- |
| Reset Count to Zero  | The count goes back to 0 and the channel is told who broke it. |
| Delete Wrong Message | The message is deleted and the count carries on.               |
| Warn Counter Only    | The member is warned and the count carries on.                 |

## Settings

| Setting                    | Default             | What it does                                     |
| -------------------------- | ------------------- | ------------------------------------------------ |
| Enable Counting Game       | On                  | Turns the game on or off.                        |
| Counting Channels          | None                | Channels that run a game.                        |
| Allow Math Expressions     | On                  | Accepts math instead of plain numbers.           |
| Allow Consecutive Counting | Off                 | Lets one member count twice in a row.            |
| Failure Action             | Reset Count to Zero | What a mistake does.                             |
| Success Reaction Emoji     | Check               | Reaction on a correct count.                     |
| Failure Reaction Emoji     | Cross               | Reaction on a mistake.                           |
| Update Channel Topic       | On                  | Shows the count and record in the channel topic. |

## Commands

| Command                     | What it does                                                                                                              |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `/counting current`         | Show the count, the next number and the record.                                                                           |
| `/counting reset [channel]` | Reset a channel's count. Needs &#x2A;*Counting ( Manage )** or Administrator.                                             |
| Check Count                 | Right-click a message, then **Apps > Check Count**, to see what it evaluates to. Off by default on the **Commands** page. |

The **Counting Events** log records broken streaks and new records.
