1.0.4 • Published 3 years ago

zygotejs v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

What is zygoteJS?

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

zygotejs
npm install zygotejs

discord.js

npm install discord.js

Requires Node 12+ and Discord v12

Getting Started

const { lucidClient } = require("zygotejs");
const client = new lucidClient();

client.start("your token");

Event Handler

loadEvents

const { lucidClient } = require("zygotejs");
const client = new lucidClient();

client.start("your token");
client.loadEvents("./events/"); // Can Support Sub Folders

How to execute?

module.exports = {
    name: "",

    async run () {
        // The Rest of your code
    },
};

Command Handler

loadCommands

const { lucidClient } = require("zygotejs");
const client = new lucidClient();

client.start("your token");
client.loadCommands("./commands/"); // Can Support Sub Folders

How to execute?

module.exports = {
    name: "",
    description: "",
    aliases: ["Name, Other Name, Original name in the second line"],
    usage: "",
    category: "",
    cooldown: 0,

    run: async (client, message, args) => {
        // The Rest Of Your Code
    },
};

How To Make Embeds

module.exports = {
  name: "Needed Command Name",
  aliases: ["Needed Command Name", "Second Command Alias", "Third"],

  run: async (client, message, args) => {
    let embed = new MessageEmbed()
    .setTitle("Title")
    .setDescription("Description")
    .setFooter("Footer")

    message.channel.send(embed)
client.setConfig({
    prefix: ["c!",],
    defaultCooldown: 5,
    blacklist: ["1", "2"],
    developer: ["1", "2"],
    messageCooldown: "You have to wait {time} before using the command!"
}))
  }
}

Configuration

defaultExecute

// Execute Your Commands Via Default
const { lucidClient } = require("zygotejs");
const client = new lucidClient();

client.start("your token");
client.loadCommands("./commands/")
client.defaultExecute(); // You can skip if your gonna make a custom one

setConfig

const { lucidClient } = require("zygotejs");
const client = new lucidClient();

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!"
});

Issues

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.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago