# Bot Setup

{% hint style="danger" %}
Please follow the entire setup guide. Your bot won't be activated if you skip the steps below.
{% endhint %}

## Bot Creation

1. Go to the Discord **Developer Portal.**

{% embed url="<https://discord.com/developers/applications?new_application=true>" %}

2. Log in with your Discord Account and select the button '**New Application**'.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FIponZs9TYfeANKImpylo%2FCreateApplication.png?alt=media&#x26;token=208b7014-cf7e-4eff-b610-623eee9cb1df" alt=""><figcaption><p>New Application</p></figcaption></figure>

3. Then enter the name you want your bot to be called and click '**Create**'.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FT4YQ0cN2IsdhPQ1lAN1S%2FImber%20Bot%20Setup%20Guide%20Create%20Bot.png?alt=media&#x26;token=a6455564-1caf-4518-b718-3b8f169a29b3" alt=""><figcaption><p>Create a Bot</p></figcaption></figure>

## Installation Options

1. Locate the '**Installation**' tab on the left side.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FLbVldU25IiQzQ4lcv6Ko%2FImber%20Bot%20Setup%20Guide%20Installation.png?alt=media&#x26;token=054337eb-867c-4a4f-a573-e2c9a9141cb5" alt=""><figcaption><p>Installation Options</p></figcaption></figure>

2. Set the options as seen above in the image

{% hint style="warning" %}
You must use the options seen above, your bot won't activate without them!
{% endhint %}

## Bot Token

1. Locate the '**Bot**' tab on the left side.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FmFTLozhh6XceIUuALD1D%2FImber%20Setup%20Guide%20Reset%20Token.png?alt=media&#x26;token=029db5fb-56b8-4149-b525-017396f9f448" alt=""><figcaption><p>Reset Bot Token</p></figcaption></figure>

2. Get the '**Bot Token**' by clicking '**Reset Token**' followed by **'Yes, do it!'**.&#x20;
3. Click '**Copy**' to copy the bot token.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2F1za4tBSRTjN1e1niinpB%2FImber%20Setup%20Guide%20Copy%20Token.png?alt=media&#x26;token=13a73025-3ed5-42d0-87b2-5e20ec1b3b33" alt=""><figcaption><p>Copy Bot Token</p></figcaption></figure>

{% hint style="info" %}
Save the '**Bot Token**' temporarily. This is required later to activate your bot!
{% endhint %}

## Required Intents

1. Scroll down on the '**Bot**' tab and set the options as seen in the image below.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FMURr4EFCsEstVTgGbm9g%2FImber%20Setup%20Guide%20Required%20Intents.png?alt=media&#x26;token=ae54cc56-6aee-4cf3-83f0-13703717a406" alt=""><figcaption><p>Required Intents</p></figcaption></figure>

{% hint style="warning" %}
You must use the options seen above, your bot won't activate without them!
{% endhint %}

## Client Secret

1. Locate the '**OAuth2**' tab on the left side.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FqgRehFJtKjf36hSqVeNi%2FImber%20Setup%20GuideSecret%20Reset.png?alt=media&#x26;token=5b21353b-f5ef-4dd7-98ac-932b1d723439" alt=""><figcaption><p>Reset Client Secret</p></figcaption></figure>

2. Get the '**Client Secret**' by clicking the '**Reset Secret**' button.
3. Click '**Copy**' to copy the client secret.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2F0HapilVk4C4RgPbaaGBh%2FImber%20Setup%20Guide%20Secret%20Copy.png?alt=media&#x26;token=748ced70-4acd-47db-b532-fde7b167758c" alt=""><figcaption><p>Copy Client Secret</p></figcaption></figure>

{% hint style="info" %}
Save the '**Client Secret**' temporarily! This is required later to activate your bot!
{% endhint %}

## Redirect URLs

1. On the '**OAuth2**' page, add the Redirect URI by clicking the '**Add Redirects**' button.
2. Set the **two redirect URIs** seen below and click **save changes**.

{% code fullWidth="false" %}

```
https://api.imber.cc/oauth2/verify
```

{% endcode %}

```
https://api.imber.dev/oauth2/verify
```

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2Fp0Mw2OO7ykQtTIme8Snc%2FImber%20Setup%20Guide%20Redirects.png?alt=media&#x26;token=cafd9791-e93c-4c86-a195-ecf34d1cbc50" alt=""><figcaption><p>Required Redirects</p></figcaption></figure>

## Dashboard

1. Go to the **Imber Dashboard**.

{% embed url="<https://imber.dev/my-account/bots/>" %}

2. Log in with your Imber account and click the button '**CREATE**'.

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FgyvJAFaMB8qvD2HXQnXs%2Fimage.png?alt=media&#x26;token=2942b8c6-741a-41cc-87aa-71bf8ce5b568" alt=""><figcaption><p>New Bot</p></figcaption></figure>

3. Paste your '**Bot Token**' and '**Client Secret**' and click **'CREATE BOT'.**

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2Fdu1jd2IZR3vCPGWp9IYO%2Fimage.png?alt=media&#x26;token=81d8c2c5-33f3-40ba-9aef-104ac60be70b" alt=""><figcaption><p>Create Bot</p></figcaption></figure>

4. Invite your bot to a server by clicking the '**Invite**' button

<figure><img src="https://867698544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq8K4stF89AwBS2uCqx4F%2Fuploads%2FtI4BChytJ6eceBARxTQg%2Fimage.png?alt=media&#x26;token=6f15dc81-5af5-4c04-90b2-213f9caac578" alt=""><figcaption><p>Invite Bot</p></figcaption></figure>

{% hint style="success" %}
You now have successfully created your custom Discord bot!
{% endhint %}

{% content-ref url="../customization" %}
[customization](https://docs.imber.dev/imber-bot/customization)
{% endcontent-ref %}
