A user friendly wapper of discord.js lib for a fresh start in bot developing.
- Easy command handler
- Easy event handler
- Easy setup
- Default command execute
- Colorful console
coldjs
npm install coldjs
discord.js
npm install discord.js
Requires Node 12+ and Discord v12
const { coldClient } = require("coldjs");
const client = new coldClient();
client.start("your token");
const { coldClient } = require("coldjs");
const client = new coldClient();
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 { coldClient } = require("coldjs");
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 { coldClient } = require("coldjs");
const client = new coldClient();
client.start("your token");
client.loadCommands("./commands/")
client.defaultExecute(); // If you want to make custom one then you can skip
const { coldClient } = require("coldjs");
const client = new coldClient();
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!"
});
It's common for you to face issues as because it is the first version that released. If you find any feel free to submit and it will be fixed on next release.