Support - Have questions or want to talk and contact the developers?
Log on to the support server now to get answers to your questions or to receive help with errors:
Table Of Contents
Installation
Node.JS 16.6.0 or newer is required.
npm install aoi.fb
Aoi.js v5.1.0 or newer is required. Check how to use in Package.json
Setup
Then, in your index file, configure aoi.fb:
const aoifb = require("aoi.fb")
const firebase = aoifb.Create({
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
})
const aoijs = require("aoi.js")
const bot = new aoijs.Bot({
token: "TOKEN", // Discord Bot Token
prefix: "PREFIX",// Discord Bot Prefix
intents: ["GUILDS", "GUILD_MESSAGES"], //Discord Bot Intents
database: {
type: "aoi.fb",
db: firebase
} // Change database to aoi.fb
})
// LoadCommands
const loader = new aoijs.LoadCommands(bot);
loader.load(bot.cmd, './Commands/', false)
// Events
bot.onMessage();
bot.onMessageUpdate();
bot.onMessageDelete();
bot.onInteractionCreate();
// Command Example for Database Latency
bot.command({
name: "ping",
code: `Pong!
> Bot Latency: $pingms
> Database Latency: $djsEval[client.db.db.ping();yes]`
})
bot.readyCommand({
channel: "",
code: `$log[Ready on $userTag[$clientID]]`
})
Mirai Development
AoiFB
aoi.fb - A Firebase database of wrapper using aoi.fb as API
Owned by GR and Team Mirai Development

Open Source
aoi.fb is a package and db made for developers using aoi.js. Also made by you! If you want to contribute just do a pull-request
Copyright © 2022 @MiraiDevelopment