Skip to content

Setup

Installation

Terminal window
npm install aoi.jikan

Index Setup

index.js
//aoi setup
const { AoiClient } = require("aoi.js");
const client = new AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage", "onInteractionCreate"],
database: {
type: "aoi.db",
db: require("@akarui/aoi.db"),
dbType: "KeyValue",
tables: ["main"],
securityKey: "a-32-characters-long-string-here",
}
});
//aoi.jikan setup
const aoijikan = require("aoi.jikan");
aoijikan.setup({
client: client, // or bot as per your config
errorsType: "message", // or "console"
version: "v1", //the latest and only
token: "WAIFU API TOKEN" // It's OPTIONAL! Use only if you wanna access the API's commands.
});