Package Exports
- @akarui/aoi.panel
- @akarui/aoi.panel/src/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 (@akarui/aoi.panel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@akarui/aoi.panel
Installation
npm i @akarui/aoi.panel
Basic Usage:
const {Panel} = require("@akarui/aoi.panel")
const {AoiClient} = require("aoi.js")
const bot = new AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage"]
});
const panel = new Panel({
username: "your-username",//username for logging in
password: "password-here",//password for logging in
secret: require('crypto').randomBytes(16).toString("hex"),//session secret
port: 3000,//port on which website is hosted, Not required! Default 3000
bot: bot,//your aoi.js client
mainFile: "index.js",//Main file where code is running.Not required, default taken from package.json
commands: "./commands",// folder name in which all the edit needing files are there.
interaction:"./interactions"//interactions folder
})
panel.loadPanel()//Load The Panel
panel.onError()//Will detect errors, and send it to aoi.panel's error page.