A user friendly wrapper of discord.js lib for a fresh start in bot developing.
- Easy command handler
- Easy event handler
- Easy setup
- Default command execute
- Colorful console
andcord.js
npm install andcord.js
discord.js
npm install discord.js
Requires Node 12+ and Discord v12
const { andcordClient } = require("andcord.js");
const client = new andcordClient();
client.start("your token");
const { andcordClient } = require("andcord.js");
const client = new andcordClient();
client.start("your token");
client.loadCommands("./commands/"); // Supports subfolder
module.exports = {
name: "",
description: "",
aliases: [],
usage: "",
category: "",
cooldown: 0,
run: async (client, message, args) => {
// Rest of your code
},
};
const { andcordClient } = require("andcord.js");
const client = new coldClient();
client.start("your token");
client.loadEvents("./events/"); // Supports subfolder
module.exports = {
name: "",
async run () {
// Rest of your code
},
};
// Execute your commands by default
const { andcordClient } = require("andcord.js");
const client = new andcordClient();
client.start("your token");
client.loadCommands("./commands/")
client.defaultExecute(); // If you want to make custom one then you can skip
const { andcordClient } = require("andcord.js");
const client = new andcordClient();
client.start("your token");
client.loadCommands("./commands/")
client.defaultExecute();
client.setConfig({
prefix: ["c!",],
defaultCooldown: 5,
blacklist: ["1", "2"],
developer: ["1", "2"],
messageCooldown: "You have to wait {time} before using the command!"
});