JSPM

aoi.js-handler

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40783F
  • License Apache-2.0

A powerful tool for aoi.js: discord bot framework to handle commands

Package Exports

  • aoi.js-handler
  • aoi.js-handler/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aoi.js-handler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AOI.JS-HANDLER

Logo

aoi.js-handler is a package built for aoi.js to make it easy for users to load their command, events, custom functions and statuses.

Installation

npm install aoi.js-handler

Setup

// Import necessary modules
const { AoiClient } = require("aoi.js");
const { Handler } = require("aoi.js-handler")

// Create a new AoiClient instance
const client = new AoiClient({
  token: "Discord Bot Token",
  prefix: "Discord Bot Prefix",
  intents: ["MessageContent", "Guilds", "GuildMessages"],
  events: ["onMessage", "onInteractionCreate"],
  database: {
    type: "aoi.db",
    db: require("@akarui/aoi.db"),
    dbType: "KeyValue",
    tables: ["main"],
    securityKey: "a-32-characters-long-string-here",
  }
});

// Initialize a Handler for structured command handling
const handler = new Handler(
  {
    client: client,
    readyLog: true
  },
  {
    // Additional Handler configuration options go here
  },
  __dirname
);

// Module is now ready for use

Useful Links

GitHub

Github - aoi.handler

npm

NPM - aoi.handler

docs

DOCS - aoi.handler

support

Discord Support

Visit docs for further information.

Showcase

Command Loader

command loader

Variable Loader

variable loader

Status Loader

status loader

Custom Function Loader

function loader

readyLog: true

readyLog loading