1.3.3 • Published 4 years ago

ez-discord v1.3.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Ez Discord

Version Downloads Activity Github

A very easy-to-use and fully object-oriented command and event framework for eris.

Installation

npm install ez-discord

Instancing client class example

const ezDiscord = require("ez-discord");

new ezDiscord.Client({
    token: "Your bot token",
    commandsPath: "Your commands directory",
    eventsPath: "Your events directory"
});

Ping pong command example

const ezDiscord = require("ez-discord");

class PingCommand extends ezDiscord.Command {
    constructor(client) {
        super(client, {
            name: "ping",
            description: "Meh",
            aliases: ["pung", "pong"]
        });
    };
    
    exec(message) {
        return message.channel.createMessage("Pong!");
    };
}

module.exports = PingCommand;

Note that you would gotta create the messageCreate event yourself in order to have commands working. This is so that anyone can customize commands according to its CommandOptions object.

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.0

4 years ago

1.2.8

4 years ago

1.1.9

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago