1.1.0 • Published 2 years ago
aoi.js-handler v1.1.0
AOI.JS-HANDLER
npm install aoi.js-handler// 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 useUseful Links
| Github - aoi.handler | NPM - aoi.handler | 
|---|---|
| DOCS - aoi.handler | Discord Support | 
Visit docs for further information.
Showcase
Command Loader

Variable Loader

Status Loader

Custom Function Loader

readyLog: true
