Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoijs/aoi.panel
A developer panel for Aoi.js Users
https://github.com/aoijs/aoi.panel
aoi-js aoi-panel aoijs bot dbdjs developer nodejs panel
Last synced: about 16 hours ago
JSON representation
A developer panel for Aoi.js Users
- Host: GitHub
- URL: https://github.com/aoijs/aoi.panel
- Owner: aoijs
- License: mit
- Created: 2022-06-06T02:32:57.000Z (over 2 years ago)
- Default Branch: v0.0.8
- Last Pushed: 2024-06-14T08:32:11.000Z (5 months ago)
- Last Synced: 2024-06-19T20:48:41.449Z (5 months ago)
- Topics: aoi-js, aoi-panel, aoijs, bot, dbdjs, developer, nodejs, panel
- Language: CSS
- Homepage:
- Size: 2.15 MB
- Stars: 16
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@akarui/aoi.panel
![npm](https://img.shields.io/npm/dt/@akarui/aoi.panel?color=blue&label=NPM%20Downloads&logo=npm&logoColor=Green)
![GitHub](https://img.shields.io/github/license/AkaruiDevelopment/panel?color=blue&logo=github)
![GitHub package.json version](https://img.shields.io/github/package-json/v/AkaruiDevelopment/panel?color=blue&label=Git%20Version)
![GitHub last commit](https://img.shields.io/github/last-commit/AkaruiDevelopment/panel?color=blue)
![GitHub repo size](https://img.shields.io/github/repo-size/AkaruiDevelopment/panel)
![GitHub forks](https://img.shields.io/github/forks/AkaruiDevelopment/panel?color=blue&style=social)
![GitHub Repo stars](https://img.shields.io/github/stars/AkaruiDevelopment/panel?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/AkaruiDevelopment/panel?style=social)### Table of Contents
- [Installation](#installation)
- [Setup](#setup)
- [Adding Multiple Users](#adding-multiple-users)
- [Making Custom Pages](#making-custom-pages)### Installation
```bash
npm i @akarui/aoi.panel
```### Setup
```javascript
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
```javascript
panel.loadGUI({
username: ["username 1", "username 2", "username 3"],
password: ["Password 1", "Password 2", "Password 3"],
})
```### Making Custom Pages
```javascript
const app = panel.app;
app.get("/example", (req, res) => {
res.send("This is an example page.");
})
```