14.14.1-1.0.7 • Published 5 months ago

ecord v14.14.1-1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Easy Discord

Create a Discord bot with just a few lines.

bun add ecord
npm add ecord
pnpm add ecord
yarn add ecord

Quick Start

// src/index.js
import { EClient, GatewayIntentBits } from "ecord";

const client = new EClient({
  intents: [GatewayIntentBits.Guilds],
  paths: {
    commands: "src/commands/*.js",
    listeners: "src/events/*.js",
  },
});

client.login("YOUR_BOT_TOKEN");

ECommand

// src/commands/ping.js
import { ECommand } from "ecord";

export default new ECommand()
  .setName("ping")
  .setDescription("Display application's ping")
  .setExecutable((interaction) => {
    interaction.reply(`${interaction.client.ws.ping}`);
  });

EListener

// src/listeners/ready.js
import { EListener } from "ecord";

export default new EListener("ready").setOnce(true).setExecutable((client) => {
  console.log(`Logged as ${client.user.tag}`);
});

License

Refer to the LICENSE.

14.14.1-1.0.7

5 months ago

14.13.0-1.0.6

8 months ago

14.13.0-1.0.5

8 months ago

14.13.0-1.0.4

8 months ago

14.13.0-1.0.3

8 months ago

14.13.0-1.0.2

8 months ago

14.13.0-1.0.1

8 months ago

14.13.0-1.0.0

8 months ago

1.0.0

8 months ago