@akarui/aoi.panel

0.0.9 • Public • Published

aoi.panel

@akarui/aoi.panel

npm GitHub GitHub package.json version GitHub last commit GitHub repo size GitHub forks GitHub Repo stars GitHub watchers

Table of Contents

Installation

npm i @akarui/aoi.panel

Setup

const {Panel} = require("@akarui/aoi.panel")
const {AoiClient} = require("aoi.js");

const client = new AoiClient({
    intents: ["MessageContent", "Guilds", "GuildMessages"],
    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",
    }
});


client.loadCommands("./commands/", true);

const panel = new Panel({
    port: 3000,
    client: client
})

panel.loadAPI({
    auth: "Authentication-Key"//No spaces, keep it only alphanumeric.
})

panel.loadGUI({
    username: ["username 1"],
    password: ["Password 1"],
})

Adding Multiple Users

panel.loadGUI({
    username: ["username 1", "username 2", "username 3"],
    password: ["Password 1", "Password 2", "Password 3"],
})

Making Custom Pages

const app = panel.app;
app.get("/example", (req, res) => {
    res.send("This is an example page.");
})

Package Sidebar

Install

npm i @akarui/aoi.panel

Weekly Downloads

24

Version

0.0.9

License

MIT

Unpacked Size

3.27 MB

Total Files

42

Last publish

Collaborators

  • wiltark
  • bumblebee3
  • leref