# Setting up the bot

* **Create a Bot**: Visit <https://discord.com/developers/applications/> and create a new bot clicking on "New application"
* **Invite the bot to your server**: Replace the 'REPLACE HERE THE ID' part in the URL <https://discordapp.com/oauth2/authorize?client_id=REPLACE>-HERE-THE-ID\&scope=bot with the bot's ID. Visit the modified URL to authorize the bot. You will find the ID of your bot in the "General Information" section.\
  In the example with the image below, the link would be:\
  [https://discordapp.com/oauth2/authorize?client\_id=](https://discordapp.com/oauth2/authorize?client_id=REPLACE)[1258304058943606865\&scope=bot](https://discordapp.com/oauth2/authorize?client_id=1258304058943606865\&scope=bot)

<figure><img src="https://2810351180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fio8LRiGSETjpcvpWsiH3%2Fuploads%2FGHB9nQwBxPO4Fhl3t5PN%2Fimage.png?alt=media&#x26;token=b26e9e59-c9a7-47ea-8a8e-3d18f61d8976" alt="" width="375"><figcaption><p>Bot ID</p></figcaption></figure>

* Get the Token: Go to the section "Bot" and click on "Reset Token". Once the token is reset, copy it and save it in a secure place.

<figure><img src="https://2810351180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fio8LRiGSETjpcvpWsiH3%2Fuploads%2FhelSNdTp9beHpIZ9sEd7%2Fimage.png?alt=media&#x26;token=db7d3566-3b38-4094-a622-e0395c6bc00b" alt="" width="375"><figcaption><p>Reset Token Button</p></figcaption></figure>

* Paste the token into your config.yml (discord-bot - token) and enable it by setting enabled to true.

### Now, choose what do you want to configure:

{% content-ref url="setting-up-the-bot/configuring-main-menu" %}
[configuring-main-menu](https://bounser.gitbook.io/nascraft/features/discord-extension/setting-up-the-bot/configuring-main-menu)
{% endcontent-ref %}

{% content-ref url="setting-up-the-bot/configuring-trades-log" %}
[configuring-trades-log](https://bounser.gitbook.io/nascraft/features/discord-extension/setting-up-the-bot/configuring-trades-log)
{% endcontent-ref %}
