Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.01 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.01 KB

Neocord: Enjo

The official bot framework for the neocord discord library.

Disclaimer

Enjo is currently in alpha. Not all features are currently implemented... this should not be used in production.

Installation and Usage.

As of 09/30/2020 day/month/year, Enjo will only support node.js v12 and above.

yarn add @neocord/enjo
Basic Usage
import { Enjo, Commands, Listeners } from "enjo";

class MyClient extends Enjo {
  public commands = new Commands(this);
  public listeners = new Listeners(this);
}

const client = new MyClient();

client.commands.add({
  id: "ping",
  triggers: ["ping"]
}, (ctx) => {
  ctx.reply("**Pong!**");
});

Links


Licensed under the MIT License.