1.0.4 • Published 3 years ago
aoijs.firebase v1.0.4
Aoi.JS Firebase
Table Of Contents
About
A Firebase Database wrapper using firebase with dbdjs.db like API
Examples
const aoijs = require("aoi.js")
const aoifb = require("aoijs.firebase")
const database = aoifb.create({
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
})
const bot = new aoijs.Bot({
token: "TOKEN",
prefix: "PREFIX",
intents: "all",
database: database
})
bot.onMessage()
bot.command({
name: "ping",
code: `Pong! $pingms`
})
bot.readyCommand({
channel: "",
code: `$log[Ready on $userTag[$clientID]]`
})