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

# Setup

To start your bot using Prodige you can copy and paste the code below, then, edit the "token" and "prefix" for the most basic configuration possible.

## Basic Setup:

{% tabs %}
{% tab title="JavaScript" %}
{% code title="index.js" %}

```javascript
const { Prodige } = require('prodige');
const { Intents } = require('discord.js');

const client = new Prodige({
  intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
});

client.start({
  token: 'YOUR_TOKEN_HERE',
  prefix: '?',
  // Path to all your commands. By default: commands
  commandsDir: "cmds",
  // Path to all your events. By default: event
  eventsDir: "events",
  //Array of all the user ids that can execute owner only commands
  ownerId: ["349610823343407105"],
  //If the bot should use custom prefixes per guild. By default: false
  prefixPerServer: false,
  //If "prefixPerServer" is set to true, a valid mongodbURI is required
  mongodbURI: "YOUR_MONGODB_URI"
});

```

{% endcode %}
{% endtab %}
{% endtabs %}
