diff --git a/index.js b/index.js index e697667..51e2757 100644 --- a/index.js +++ b/index.js @@ -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 }); } @@ -118,4 +119,4 @@ api.announcementEngine = api.ttsEngines[process.env.ANNOUNCEMENT_ENGINE]; registerModules(); })() bot.login(process.env.TOKEN); -bot.on('message', handleMessage); \ No newline at end of file +bot.on('message', handleMessage);