1.1.8 • Published 4 years ago
@sinistrecyborg/ivy v1.1.8
About Ivy
Ivy is a simple, utilitarian bot core (command framework) for Eris. I got tired of writing the same code for every new bot, so I built my own solution for it. It offers the bare minimum features necessary for any Discord bot.
It features:
- Command and Event loading and management
- A colorful logger
That's pretty much it; like I said, it's simple.
Example
const { IvyClient } = require("@sinistrecyborg/ivy");
const path = require("path");
const client = new IvyClient({
prefix: "!",
token: "INSERT TOKEN HERE",
});
client
.bindEvents(path.join(process.cwd(), "events"))
.commands.bulkLoad(path.join(process.cwd(), "commands"))
.connect();
const { Command } = require("@sinistrecyborg/ivy");
class PingCommand extends Command {
constructor(client) {
super(client, {
name: "ping",
description: "Check my connection to Discord.",
category: "utility",
});
}
exec(message) {
return message.channel.createMessage(`🏓 ${message.author.mention}, Pong!`);
}
}
module.exports = PingCommand;
License
Ivy is released under the MIT License.