> For the complete documentation index, see [llms.txt](https://docs.membercounter.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.membercounter.app/readme/custom-bot/setting-up-custom-bot.md).

# Setting up custom bot

## All you need is a Discord Bot Token

A Discord Bot Token is a unique key provided by Discord that allows a bot to log in and operate under its own bot account. It acts as a password for your bot, enabling the bot to send messages, respond to commands, and interact with Discord's API.

You should never share this token with anyone (would you share your own password? No, right? It's the same thing!), and our staff will never ask for it.

## Getting a Discord Bot Token

Head over the [Discord Developer Portal](https://discord.com/developers/applications), and create a new application if you don't have one or if you wish to use a dedicated bot account for Member Counter (we strongly recommend this)

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

A dialog box will appear asking for a name. Type the name of your new bot and click "Create"

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

Now let's configure your new Discord Bot

1. Head over the Bot tab
2. Enable the necessary privileged intents outlined, you can also upload the bot's icon and banner, or change its username
3. Save the changes
4. Click on "Reset Token", you will be prompted if you really want to proceed, click "Yes, do it!", the new token will be revealed, copy it and store it in a safe location

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

Now come back to the [Member Counter Dashboard](https://membercounter.app/dashboard) and select your custom bot

<figure><img src="/files/-MD0jukF6oceLcixpVM4" alt=""><figcaption></figcaption></figure>

Now paste the bot token and save the settings.

<figure><img src="/files/-MOVoqZvKpGJsJW9k0ta" alt=""><figcaption></figcaption></figure>

Now let's setup the subscription

* Use the minus and plus buttons to adjust your needs.
* Click on subscribe when you are ready.

<figure><img src="/files/-LydT8r8R0KvRPp67UWA" alt=""><figcaption></figcaption></figure>

* Read and agree the [Terms of Service](https://membercounter.app/legal?page=terms-of-service), the [Privacy Policy](https://membercounter.app/legal?page=privacy-policy) and the [Acceptable use Policy](https://membercounter.app/legal?page=acceptable-use-policy).
* And finally, subscribe using your preferred payment method.

  <figure><img src="/files/-LuILk5lfMJlw4f0MgkT" alt=""><figcaption></figcaption></figure>

After setting up the subscription, head over the control panel section, and click on the power button located at the right.

<figure><img src="/files/-MOVoqysyeorxLzfu6aq" alt=""><figcaption></figcaption></figure>

The bot will take some time to boot up, if you find any issue during the setup, don't hesitate into asking for help at our [support server](https://discord.com/invite/g4MfV6N).

Now you might like to change the bot status...

{% content-ref url="/pages/CbYqVIWafLy65PYMtmnt" %}
[Changing bots status](/readme/custom-bot/changing-bots-status.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.membercounter.app/readme/custom-bot/setting-up-custom-bot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
