androierv2.js
v1.0.0
Published
andcord.js - a user-friendly wrapper of discord.js lib for a fresh start in bot developing.
Maintainers
Readme
What is androier.js?
A user friendly wrapper of discord.js lib for a fresh start in bot developing.
What we have?
- Easy command handler
- Easy event handler
- Easy setup
- Default command execute
- Colorful console
Installation
androier.js
npm install androier.js
discord.js
npm install discord.js
Requires Node 12+ and Discord v12
Getting Started
const { androierClient } = require("androier.js");
const client = new androierClient();
client.start("your token");Command Handler
loadCommands
const { androierClient } = require("androier.js");
const client = new androierClient();
client.start("your token");
client.loadCommands("./commands/"); // Supports subfolderHow to execute?
module.exports = {
name: "",
description: "",
aliases: [],
usage: "",
category: "",
cooldown: 0,
run: async (client, message, args) => {
// Rest of your code
},
};Event Handler
loadEvents
const { androierClient } = require("androier.js");
const client = new androierClient();
client.start("your token");
client.loadEvents("./events/"); // Supports subfolderHow to execute?
module.exports = {
name: "",
async run () {
// Rest of your code
},
};Configuration
defaultExecute
// Execute your commands by default
const { androierClient } = require("androier.js");
const client = new androierClient();
client.start("your token");
client.loadCommands("./commands/")
client.defaultExecute(); // If you want to make custom one then you can skip
setConfig
const { androierClient } = require("androier.js");
const client = new androierClient();
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!"
});