Skip to content

Faf4a/aoi.sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoi.sqlite

  • Easy to use package for the implementation of SQLite in aoi.js with minimal changes.

Setup

To get started with aoi.sqlite, we have to do a couple things.

  • Install the package.
npm install github:faf4a/aoi.sqlite
  • Update your index.js file.
const { AoiClient, LoadCommands } = require("aoi.js");
const { Database } = require("aoi.sqlite");

const client = new AoiClient({
  token: "DISCORD BOT TOKEN",
  prefix: "DISCORD BOT PREFIX",
  intents: ["Guilds", "GuildMessages", "GuildMembers", "MessageContent"],
  events: ["onInteractionCreate", "onMessage"],
  disableAoiDB: true // This is important, ensure it's set to true. You can't use both at once.
});

new Database(client, {
  location: "./database.db", // your SQLite file location
  tables: ["main"],
  logging: true, // default is true
  debug: true, // default is false
});

client.variables({
    variable: "value"
}); // just like you did before.

// rest of your index.js..

aoi.db

Transfer aoi.db database

That's currently not possible with this package.

Want to keep aoi.db?

That's currently not possible with this package and not planned in the near future.

About

SQL implementation for aoi.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published