aoi.canvas
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

aoi.canvas

aoi.canvas is a aoi.js extension that allows you to utilize canvas functions with aoi.js bot.

Installation

npm install aoi.canvas

Setup

const { AoiClient } = require("aoi.js");
const { AoiCanvas } = require("aoi.canvas");

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

const canvas = new AoiCanvas(client);

// Ping Command Example
client.command({
    name: "ping",
    code: `Pong! $pingms`
});

If you have any questions or need help, ask in the official aoi.js server.

Enjoy coding with aoi.canvas! ❤

Package Sidebar

Install

npm i aoi.canvas

Weekly Downloads

90

Version

2.0.6

License

MIT

Unpacked Size

207 kB

Total Files

158

Last publish

Collaborators

  • lordex