# Counting

<figure><img src="/files/iwP0KfssnKiVzy5WadBn" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This module requires a [Premium Subscription](/premium/premium-and-priority-hosting-plans.md#premium-plans) to function.
{% endhint %}

The [Counting](https://dashboard.botghost.com/dashboard/module/5206b1e7-f841-4d04-8c09-2f0bfe28b50e/counting) module allows your server members to engage in a fun counting activity, see how high you can go with this unlimited counting module!&#x20;

## Settings

### General Settings

Here you can configure the main settings for the counting module, from setting the counting channel to changing the counting mode.

<figure><img src="/files/P6mfoUMV74eFEjgbhalv" alt=""><figcaption></figcaption></figure>

#### **Counting Mode**

Here you can change the mode of the counting which will adjust the behavior of the bot in the counting channel.

| Mode    | Details                                                                                                                                                          |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Normal  | This mode will simply add a reaction to the users message if they send the correct number to the channel.                                                        |
| Webhook | This mode will delete the users message and repost it in a webhook format to make it appear as though a bot version of the user sent it if the count is correct. |

#### **Channel**

Here you can select the channel you want the counting event to work in, channels not selected here will not trigger the counting module.

#### **Reactions**

If this toggle is enabled, and if [#counting-mode](#counting-mode "mention") is set to 'Normal', then the bot will add a reaction to the correct number.

#### Reaction Emoji

If [#reactions](#reactions "mention") is enabled, then you can add the reaction that you want the bot to add to the messages.

#### **Allow Multiple Counts**

If this toggle is enabled, users will be able to count more than once in a row.

#### **Cooldown**

Here you can enable / disable a 5 second channel wide cooldown which will prevent users from sending another count for 5 seconds after one has just been sent.

### Error Settings

Here you can configure the error settings for the counting module.

<figure><img src="/files/MJ8G1umAEdT6fHEsdxEy" alt=""><figcaption></figcaption></figure>

#### **Return Errors**

If this toggle is enabled, all errors described in the settings below will be active.

#### **Error Message For Wrong Count**

If [#return-errors](#return-errors "mention") is enabled, you can set the message that will be displayed to user for sending the wrong count to the channel. [Variables](/custom-commands-and-events/variables.md) can be used.

#### **Error Message For Counting Twice**

If [#return-errors](#return-errors "mention") is enabled and if [#allow-multiple-counts](#allow-multiple-counts "mention") is also disabled, you can set the message that will be displayed to user for sending 2 or more counts without waiting for another user to count.

#### **Error Message For The Cooldown**

If [#return-errors](#return-errors "mention") is enabled, you can set the message that will be displayed to the user if they try to count during the 5 second cooldown if [#cooldown](#cooldown "mention") is enabled.

***

## Commands

In this area, you can view and modify the commands of the Counting module. Below you may find some information on each command of the module.

<figure><img src="/files/1nIH3OlNzcMoiYUh3pma" alt=""><figcaption></figcaption></figure>

<details>

<summary>/counting-set</summary>

This command allows you to set the current count of the module to any new number.

</details>

## Events

In this area, you can view and modify the events of the Counting module. Below you may find some information on each event of the module.

<figure><img src="/files/mFwJMb2VUzQH33eWognv" alt=""><figcaption></figcaption></figure>

<details>

<summary>Counting</summary>

This event handles all the module functions such as the errors, tracking the number, and all other settings.

</details>

***

{% hint style="danger" %}
It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.

Additionally, a copy of the edited commands / events will be created if you update the module.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.botghost.com/fun-modules/counting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
