1.1.0 • Published 5 months ago

aoi.js-handler v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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 use

Useful Links

Github - aoi.handlerNPM - aoi.handler
DOCS - aoi.handlerDiscord 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

1.1.0

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago