# Setup

## Requirements

1. [Node JS](#node.js)&#x20;
2. [Discord Bot Token](#discord-bot-token)
3. [Code Editor](#code-editor) (Highly Recommend)

#### 1. Node.js

{% embed url="<https://www.youtube-nocookie.com/embed/5RkpX6-V2Ds?controls=0&end=89>" %}
Video by [@](https://www.youtube.com/@AthiTech)[United Top Tech](https://www.youtube.com/@unitedtoptech6288). Only 90 seconds
{% endembed %}

#### 2. Discord Bot Token

{% embed url="<https://www.youtube-nocookie.com/embed/KZ3tIGHU314?controls=0&amp;start=47&end=133>" %}
Video by [@UnderCtrl](https://www.youtube.com/@underctrl) .Only 86 Seconds
{% endembed %}

#### 3. [Code Editor](#code-editor) (Highly Recommend)

{% embed url="<https://www.youtube-nocookie.com/embed/JPZsB_6yHVo?controls=0&amp;start=10&end=217>" %}
Video by @[Geeky Scrip](https://www.youtube.com/@GeekyScript)t. Only 3 minutes&#x20;
{% endembed %}

## Download the Bot

To download the latest release of the bot, please click [here](https://github.com/Nooberpro/minecraft-discord-bot/archive/refs/heads/main.zip).

## **Installing Dependencies**

We need install dependencies some npm package, this is easy.

1. Open the bot folder in visual studio code.
2. Open the terminal by Holding `` Ctrl + ` ``
3. To install the packages, type the below command in your terminal.

{% code fullWidth="false" %}

```bash
npm install
```

{% endcode %}

## Configuring the Bot

To seamlessly integrate and customize your bot, you can easily configure its settings using the `config.js` file. The only required parameter is the `token`, but additional options are available for further customization.

#### Configuration Steps:

1. **Open `config.js` file:**
2. **Specify Bot Token:**
   * In the `config.js` file, ensure that you provide the required `token`. This token is essential for the proper functioning of your bot.

     <pre class="language-javascript" data-title="config.js"><code class="lang-javascript">module.exports = {
       bot: {
         token: 'your-bot-token-here',
       // Other optional configurations...
     </code></pre>
3. **Optional Configurations:**
   * Explore additional optional configurations available in the `config.js` file to tailor your bot's behavior according to your needs. Refer to the detailed configurations in next section for more information. [**Detailed Configurations Here**](https://nooberpro.gitbook.io/minecraft-discord-bot/installation/config)

## Running the Bot

* Open the bot folder in visual studio code.
* Open the terminal by Holding `` Ctrl + ` ``
* &#x20;Type the command in your terminal. **`npm start`** or **`node .`**.

{% hint style="info" %}
If you don't understand something, you found a bug, or you just need help\
creating a [new issue on GitHub Repository](https://github.com/NooberPro/minecraft-discord-bot/issues).
{% endhint %}
