|
|
|
@ -13,8 +13,9 @@ let commandHandlers = new Map();
|
|
|
|
|
const bot = new Discord.Client();
|
|
|
|
|
|
|
|
|
|
async function initDB() {
|
|
|
|
|
console.log(__dirname);
|
|
|
|
|
api.db = await open({
|
|
|
|
|
filename: 'database/tardis.db',
|
|
|
|
|
filename: process.env["DB_FILE"],
|
|
|
|
|
driver: sqlite3.Database
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|