14.14.1-1.0.4 • Published 5 months ago

velora v14.14.1-1.0.4

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

Velora

Create a Discord bot with just a few lines.

bun add velora
npm add velora
pnpm add velora
yarn add velora

Quick Start

// Or require() for CommonJS modules
import { GatewayIntentBits, VeloraClient } from "velora";

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

client.login("YOUR_BOT_TOKEN");

With TypeScript

import { GatewayIntentBits, VeloraClient } from "velora";

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

client.login("YOUR_BOT_TOKEN");

VeloraCommand

import { VeloraCommand } from "velora";

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

VeloraEvent

import { VeloraEvent } from "velora";

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

License

Refer to the LICENSE.

14.14.1-1.0.4

5 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