mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-10 10:55:23 +02:00
add autovoc
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user