![GitHub watchers](https://camo.githubusercontent.com/b896e750f66704333106f181679cf845bcd2beaace7924d8a59649a7eaa4ce7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f416b61727569446576656c6f706d656e742f70616e656c3f7374796c653d736f6369616c)
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"],
})
panel.loadGUI({
username: ["username 1", "username 2", "username 3"],
password: ["Password 1", "Password 2", "Password 3"],
})
const app = panel.app;
app.get("/example", (req, res) => {
res.send("This is an example page.");
})