> For the complete documentation index, see [llms.txt](https://camposcodes.gitbook.io/easediscordjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://camposcodes.gitbook.io/easediscordjs/wellcome/setup.md).

# 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.
