0.0.2-beta-0.0.1 • Published 3 years ago
desf.js v0.0.2-beta-0.0.1
This is just a small wrapper to the DiscordJS library with the help of the guide from https://discordjs.guide.
Usage
import Desf from "desf";
// create a new instance
const bot = new Desf(process.env.token, { prefix: "!" });
// you can handle other events using the `.client`
// `message` event is handled in the `.run()` function
// and defining so, could override the default functionality of the library
bot.client.on("ready", () => {
console.log("Client is ready!");
});
bot.command("hello", (message, args) => {
message.send("Hello! This is Desf!");
});
bot.run();
Limitations
This is only good for small bot applications, please use the default library for larger projects.
© 2021 | MIT
0.0.2-beta-0.0.1
3 years ago
0.0.1-beta-0.3.0
3 years ago
0.0.1-beta-0.3.1
3 years ago
0.0.1-beta-0.2.0
3 years ago
0.0.1-beta-0.1.1
3 years ago
0.0.1-beta-0.1.0
3 years ago