Hey everyone! I wanted to remind everyone that this new Aoi.js DB Update has completely redefined how you define the database.
At this time, aoi.js docs have not been updated, so I'll show you how to define the new database. If you have any questions, feel free to reach out!
// New Database
const { KeyValue } = require("@akarui/aoi.db") //commonjs
const db = new KeyValue({
path: "./database",
tables: ["main"],
});
db.on("ready", () => {
console.log("Database is ready!");
});
db.connect();