This commit is contained in:
arthur
2024-06-25 12:15:45 +02:00
parent 515019f25d
commit 77673accb1
22 changed files with 4423 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
require("dotenv").config();
const sqlite3 = require("sqlite3").verbose();
const db = new sqlite3.Database(process.env.DATABASE, (err) => {
if (err) {
console.error(err.message);
return;
}
console.log("Connected to the database.");
});
db.run(`CREATE TABLE IF NOT EXISTS prefix (
guildId TEXT NOT NULL,
prefix TEXT NOT NULL DEFAULT '${process.env.PREFIX}',
PRIMARY KEY (guildId)
)`);
module.exports = db;