# Counting

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FhH6hTAcMuzVPXkMGyhm0%2Fimage.png?alt=media&#x26;token=a70fd64d-454a-4b13-a7f9-15632dcdea6f" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#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="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FzKSisNsposhiyHlaDjLf%2Fimage_2024-07-22_210628809.png?alt=media&#x26;token=05bd8af7-2fd7-4fb5-9d94-8e702cf752d8" 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="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FltrouuaThxJPRN0teGoa%2Fimage.png?alt=media&#x26;token=efe7b6a4-99aa-4d60-b9d6-56edcce78a26" 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](https://botghost.com/docs/custom-commands-and-events/variables) 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="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FvfyNNPNCc2rInnNVPoqw%2Fimage_2024-07-22_211952298.png?alt=media&#x26;token=e190edd5-2fbd-4a47-bc43-b3b1b19d1334" 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="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F1wO28L5N22rv5LSbSlUR%2Fimage_2024-07-22_212134184.png?alt=media&#x26;token=7437b1e4-f5c2-4d24-8563-a11338f63962" 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 %}
