# Setup

Now, let's start your bot using the ease-discord-js package in a very simple way! Pay close attention to the code comments; they will explain what is being done in each line.

```javascript
import { EaseClient } from "ease-discord-js"
const easeClient = new EaseClient("YOUR_TOKEN_HERE");

// Setting the paths for the commands and components
easeClient.set("commandsPath", "./_test/commands"); // Optional
easeClient.set("componentsPath", "./_test/components"); // Optional
easeClient.set("intents", []);

// Setting default values for the components, you can also set them individually
easeClient.setDefault("button", {style: "Primary"}) // Optional
easeClient.setDefault("modal", {title: "New Modal"}) // Optional

const client = easeClient.login();
client.on('ready', async (client) => {
    console.log(`Logged in as ${client.user.tag}!`);
});
```

Easy, right? After the setup, your bot will be online, showing the status "online" on Discord. Now, let's introduce how to create slash commands using the package.


---

# Agent Instructions: 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:

```
GET https://camposcodes.gitbook.io/easediscordjs/wellcome/setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
