> ## Documentation Index
> Fetch the complete documentation index at: https://docs.confine.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Counting

> Give your server a channel where members count upward together.

## How it works

Pick a channel and members take turns posting the next number. Confine reacts to confirm each valid count and tracks how far your server has gotten. One mistake resets everything back to zero.

<Info>
  Every command here requires **Manage Server**.
</Info>

## Setting it up

<CodeGroup>
  ```javascript Syntax theme={null}
  ,counting set (channel)
  ```

  ```javascript Example theme={null}
  ,counting set #counting
  ```
</CodeGroup>

Channel names work as well as mentions. The count starts at **1**.

Confine needs **View Channel**, **Send Messages**, and **Add Reactions** in that channel.

## Playing

Post the next number and confine reacts:

| Reaction | Meaning                                      |
| -------- | -------------------------------------------- |
| ✅        | Counted                                      |
| ☑️       | Counted, and you've beaten the server record |
| ❌        | Wrong — the count is back to zero            |

Confine also posts a message explaining what went wrong and how far you'd gotten.

### What resets the count

<AccordionGroup>
  <Accordion title="Posting the wrong number">
    Skipping ahead or repeating a number both end the run. Confine tells you what you sent and what it was expecting.
  </Accordion>

  <Accordion title="Posting anything that isn't a number">
    Chatting in the counting channel resets it. Keep conversation somewhere else.
  </Accordion>

  <Accordion title="Counting twice in a row">
    Unless you've allowed it, someone else has to take the next number.
  </Accordion>

  <Accordion title="Being beaten to it">
    If two people send the same number at once, only the first is counted — the other resets the run.
  </Accordion>
</AccordionGroup>

<Info>
  Commands are ignored, so running `,counting config` in the counting channel won't break the run.
</Info>

## Same-user rule

By default one member can't post two numbers in a row.

<CodeGroup>
  ```javascript Syntax theme={null}
  ,counting sameuser (yes or no)
  ```

  ```javascript Example theme={null}
  ,counting sameuser yes
  ```
</CodeGroup>

Set it to `yes` and a single member can carry the count alone.

## Checking your progress

```javascript theme={null}
,counting configuration
```

Shows the channel, the current number, what's expected next, your server's record, and whether the same-user rule is active.

## Starting over

```javascript theme={null}
,counting reset
```

Puts the count back to zero. Your record stays intact.

## Turning it off

```javascript theme={null}
,counting disable
```

Clears the channel setting entirely.
