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:

index.js
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"
});

Last updated