mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-03 23:36:23 +02:00
33 lines
846 B
TypeScript
33 lines
846 B
TypeScript
import db from './instanceDB';
|
|
require('dotenv').config();
|
|
|
|
module.exports = function addBaseInDB(client: any) {
|
|
const prefix = process.env.DEFAULT_PREFIX || '!!';
|
|
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.run('INSERT OR IGNORE INTO stats(name, value) VALUES(?, ?)', ['sendMessageCounter', 0], (err) => {
|
|
if (err) {
|
|
console.error(err.message);
|
|
}
|
|
});
|
|
|
|
|
|
db.run('INSERT OR IGNORE INTO stats(name, value) VALUES(?, ?)', ['receiveMessageCounter', 0], (err) => {
|
|
if (err) {
|
|
console.error(err.message);
|
|
}
|
|
});
|
|
} |