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
+14 -1
View File
@@ -10,7 +10,20 @@ module.exports = function addBaseInDB(client: any) {
});
const prefix = process.env.DEFAULT_PREFIX || '!!';
db.run('INSERT OR IGNORE INTO prefix(prefix) VALUES(?)', [prefix], (err) => {
db.run('INSERT OR IGNORE INTO config(name, value) VALUES(?, ?)', ['prefix', prefix], (err) => {
if (err) {
console.error(err.message);
}
});
const voc = 'None';
db.run('INSERT OR IGNORE INTO config(name, value) VALUES(?, ?)', ['autovoc', voc], (err) => {
if (err) {
console.error(err.message);
}
});
db.close((err) => {
if (err) {
console.error(err.message);
}