0.0.1 • Published 4 years ago
nekocord v0.0.1
Nekocord
A simplistic object-oriented discord.js v12 framework. Work in Progress.
Example
Initialization
import Nekocord from "nekocord";
const neko = new Nekocord.Client({
token: "token",
prefix: "."
});
neko.login();
Command
import {Command} from "nekocord";
export default new Command({
name: "cake",
aliases: ["celebrate", "woohoo"],
syntax: "<@target> [+reason]",
usage: "@user#1234 you're awesome",
description: "gift someone a cake",
visible: false,
},
function (message) {
let {target, reason} = message.getArguments();
message.channel.send(`${target}, ${message.author} gifted you a cake because ${reason}`);
});
0.0.1
4 years ago