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

# Counting

> A counting game in one channel: Petto checks every number, celebrates records and milestones, and starts over or uses a save on a mistake.

## Overview

Counting is a game: members write the numbers in order in one channel (1, 2, 3...). Petto checks each number:

* The right number gets a reaction (✅). A number that beats the record gets 🏆 only on the step the server chose (every 100 numbers by default, or never), so it does not pile up.
* A wrong number gets ❌ and, by default, the count goes **back to the start**.
* **The same person cannot count two numbers in a row**: someone else has to count in between. That message does not break the count.
* Messages that are not numbers are chat and are left alone, so people can talk in the channel.

> [accordion] Right numbers, and chat in between
>
> ![mia, nico, kira and shi count 41 to 44, each with a check reaction, and zoe chats in between without a reaction](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-right.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=7206b563306efaef2c6fedfbe7654b00)
>
> In Discord: each right number gets ✅, and a message that is not a number is left alone.

> [accordion] A wrong number
>
> ![maxwell writes 90 after 88; Petto reacts with a cross and says maxwell messed up at 88, it had to be 89, and the count starts again from 1; chu writes 1](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-wrong.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=b4688dc35c3d61b23d1c6a572e4302b5)
>
> In Discord: a wrong number gets ❌ and the count starts again from 1.

> [accordion] The same person twice
>
> ![nico writes 213 and then 214; Petto reacts with a cross and says nico cannot count two numbers in a row, the next number is 214](https://mintcdn.com/wikipetto/rok-7yv8v3ZrWquM/images/discord/community/counting-double.webp?fit=max\&auto=format\&n=rok-7yv8v3ZrWquM\&q=85\&s=968fc2a97733c08ecaf52d2b1b2eb188)
>
> In Discord: the same person cannot count twice in a row, and the count stays where it was.

If someone edits or deletes the last number, Petto says what it was, so nobody continues from a number that is not there.

![ivy edits her 315 and Petto answers that ivy edited their number, the last number is 315 and the next one is 316](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-edited.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=dfae7f6cf520a2d489373224ff589c15)

In Discord: the last number is edited, and Petto says which one it was.

![Members count 498, 499 and 2\*250 in the counting channel; Petto marks the record, announces 500 and a save, and after a wrong 503 says a save was used](https://mintcdn.com/wikipetto/LoL7QuPJ71yd9F_N/images/discord/community/counting.webp?fit=max\&auto=format\&n=LoL7QuPJ71yd9F_N\&q=85\&s=7e45d85781566e6ea291bc0d750baf14)

In Discord: the count reaches 500 with a sum, a record that earns a save, and the next mistake uses it.

## Commands

```javascript Syntax theme={null}
!counting setup <channel>
!counting next
!counting stats [user]
!counting leaderboard
!counting config
!counting set <setting> <value>
!counting number <value>
!counting reset [clear_scores]
!counting disable
```

```javascript Example theme={null}
!counting setup #counting
!counting set saves 2
!counting set math off
!counting number 500
```

> [accordion] !counting setup
>
> ![liam types !counting setup #counting and Petto answers that the counting game is on and the first number is 1](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-setup.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=783ea3e2f8e08d4dafaad3040d4b4966)
>
> In Discord: the game starts in #counting.

> [accordion] !counting next
>
> ![chu types !counting next and Petto answers that the next number is 503 in #counting, record 500](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-next.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=1ba7207445bf27be2926b8db3dab3ddc)
>
> In Discord: the next number and the record.

> [accordion] !counting stats
>
> ![Chillet types !counting stats and Petto answers 812 right, 9 wrong, 99% right and highest number 341](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-stats.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=ed2e880daecd72b95ba2f623e7ec25b4)
>
> In Discord: the numbers of a member.

> [accordion] !counting leaderboard
>
> ![chu types !counting leaderboard and Petto lists Chillet 812 right, kira 640, mia.draws 515 and five more](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-leaderboard.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=7f20ec3ebd19714b2242c8b7898cca8b)
>
> In Discord: who has counted the most.

> [accordion] !counting config
>
> ![liam types !counting config and Petto lists the channel at 502 with record 500, the rules, the saves 1 of 2, the reactions, the mistake role and the best counter role](https://mintcdn.com/wikipetto/rok-7yv8v3ZrWquM/images/discord/community/counting-config.webp?fit=max\&auto=format\&n=rok-7yv8v3ZrWquM\&q=85\&s=726407ca728bef18a107fba3cc1fd334)
>
> In Discord: how the game is set up.

> [accordion] !counting set saves
>
> ![liam types !counting set saves 2 and Petto confirms the saves the server can keep: 2](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-set-saves.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=e8b218773769c02af8bc89c30454639f)
>
> In Discord: the server can keep 2 saves.

> [accordion] !counting set math
>
> ![liam types !counting set math off and Petto confirms that sums such as 2\*3+1 count as a number: off](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-set-math.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=2fab8f18cec38471ea74dfdd103fdbc3)
>
> In Discord: sums stop counting as numbers.

> [accordion] !counting number
>
> ![liam types !counting number 500 and Petto answers that the count is at 500 and the next number is 501](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-number.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=175280c47440c590b0705eea8a45f9dd)
>
> In Discord: the count is put at 500.

> [accordion] !counting reset
>
> ![liam types !counting reset and Petto answers that the count starts again and the next number is 1](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-reset.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=7bed2a4de1e853dbf29d6fdbe325a092)
>
> In Discord: the count starts again.

> [accordion] !counting disable
>
> ![liam types !counting disable and Petto answers that the counting game is off and the numbers are kept](https://mintcdn.com/wikipetto/rok-7yv8v3ZrWquM/images/discord/community/counting-disable.webp?fit=max\&auto=format\&n=rok-7yv8v3ZrWquM\&q=85\&s=842f2ce05d95284bc19ec1cabb51ab1b)
>
> In Discord: the game stops, and the numbers are kept.

> [accordion] Without Manage Server
>
> ![chu types !counting number 500 and Petto answers that you need the Manage Server permission](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-refused.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=8393736b365540522dfd8c7e6f1548df)
>
> In Discord: a member without Manage Server cannot use the commands of the administrators.

Everything for administrators needs **Manage Server**. `next`, `stats`, `leaderboard` and `config` are for everyone. Short name: `!count`.

## Sums

With **sums** on (the default) a member can write `2*3+1` and it counts as `7`. It understands `+ - * / ^` and brackets, and only whole numbers: `7/2` is not a number. Petto never runs what is written as code.

![chu writes 99, mia writes (4+6)^2 and it counts as 100, nico writes 7/2 with no reaction, and kira writes 101](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-sums.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=01f5f1cb2a2e9c74279244997b152e7b)

In Discord: a sum counts as its result, and 7/2, which is not a whole number, is left alone as chat.

## Saves

With saves (`!counting set saves 2`) the server keeps up to that many saves (0 to 5; 0, no saves, by default). A save **forgives one mistake**: the count does not go back. One new save is earned every 100 numbers (`save_every`).

![At 600 Petto says 600 reached and the server earned a save, 1 of 2; maxwell writes 611 and Petto says a save was used and the next number is still 601; ivy writes 601](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-saves.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=0244618658199a4b966a7127198dc4e9)

In Discord: a save is earned at 600, and the next mistake uses it instead of starting over.

## Roles and alerts

* **Mistake role** (`wrong_role`): given to who gets a number wrong. It lasts the minutes you choose (`wrong_role_time`, 60 by default) or, with 0, until that member's next right number.
* **Role of the best counter** (`top_role`): it moves to whoever has the most right numbers, so it changes hands when someone passes the first place.
* **Alerts that delete themselves** (`alert_time`): the messages about a mistake (a wrong number, two in a row, an edited or deleted number) are deleted after that many seconds. 30 by default, 0 keeps them.

Petto has to be above those roles. `none` removes a role: `!counting set top_role none`.

> [accordion] !counting set wrong\_role
>
> ![liam types !counting set wrong\_role @Miscounted and Petto confirms the role given to who gets a number wrong](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-set-wrong-role.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=7aabb24dc8bdb13a6c8d859333eb3340)
>
> In Discord: the mistake role.

> [accordion] !counting set top\_role
>
> ![liam types !counting set top\_role @Counting Champ and Petto confirms the role of the best counter](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-set-top-role.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=ea3869db5ce962fa444fcc92d555c8d3)
>
> In Discord: the role of the best counter.

> [accordion] !counting set alert\_time
>
> ![liam types !counting set alert\_time 30 and Petto confirms 30 seconds until the alerts of a mistake delete themselves](https://mintcdn.com/wikipetto/8-nRkVLcKSj5D7NX/images/discord/community/counting-set-alert-time.webp?fit=max\&auto=format\&n=8-nRkVLcKSj5D7NX\&q=85\&s=b92842afe742d8db9afe8d25aa1b7bdb)
>
> In Discord: the alerts of a mistake delete themselves after 30 seconds.

## Settings

| Setting | What it does |
| - | - |
| `double` | The same person can count twice in a row (off by default) |
| `math` | Sums count as a number |
| `reset` | A mistake sends the count back to the start |
| `delete` | Wrong numbers are deleted |
| `edits` | Say when the last number is edited or deleted |
| `ok_emoji`, `bad_emoji`, `record_emoji` | The reactions |
| `saves`, `save_every` | The saves and how often one is earned |
| `wrong_role`, `wrong_role_time` | The mistake role and how long it lasts |
| `top_role` | The role of the best counter |
| `alert_time` | Seconds until the alerts delete themselves (0 = never) |
| `record_every` | The record reaction is only given on a record that falls on a multiple of this (100 by default, 0 for never) |
| `milestone` | A message every this many numbers (0 for none) |
| `start` | The number the count starts after (0 means it starts at 1) |

All of it can also be changed in the dashboard (**Counting**), which also shows the record, the right numbers and mistakes, and who counts the most.

![The Counting page of Petto Land at 502 with a record of 500, its reactions, saves and roles](https://mintcdn.com/wikipetto/PiFwt6dDUZHBNDT7/images/dashboard/community/counting.webp?fit=max\&auto=format\&n=PiFwt6dDUZHBNDT7\&q=85\&s=92302e1b41502d6792a8e98b3c6d13a4)

Dashboard → Community → Counting: the count now, the record, the right numbers and mistakes, and the settings.

![Who counts the most: Chillet with 812 right, 9 mistakes and highest 341, then kira, mia.draws, chu, shi, nico, zoe\_plays and liam](https://mintcdn.com/wikipetto/X8GdsHqKNBomKSYc/images/dashboard/community/counting-dash-top.webp?fit=max\&auto=format\&n=X8GdsHqKNBomKSYc\&q=85\&s=3060fca70cce57ba1cbbbe5756603991)

Dashboard → Community → Counting: who counts the most.

> [!NOTE]
>
> This is not the same as the [server counters](https://wiki.petto.sbs/miscellaneous/counters.md), which put numbers such as the member count in the name of a channel.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.