LightnerDev / AoiPanel

A developer panel for Aoi.js Users

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@akarui/aoi.panel

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

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.

We also support aoi.js v6 and discord.js v13.

View the full documentation here

Join our Support Server for support

About

A developer panel for Aoi.js Users

License:MIT License


Languages

Language:HTML 79.9%Language:JavaScript 20.1%