add autovoc

This commit is contained in:
Tutur33
2024-03-04 21:36:39 +01:00
parent d05019d1d5
commit 84be04b215
9 changed files with 219 additions and 9 deletions
+10 -2
View File
@@ -9,11 +9,19 @@ module.exports = function initDB() {
});
db.run(`CREATE TABLE IF NOT EXISTS prefix(
prefix TEXT NOT NULL DEFAULT '${process.env.DEFAULT_PREFIX}'
db.run(`CREATE TABLE IF NOT EXISTS config(
name TEXT NOT NULL UNIQUE,
value TEXT NOT NULL
)`, (err: Error) => {
if (err) {
console.error(err.message);
}
});
db.close((err: Error) => {
if (err) {
console.error(err.message);
}
});
}