diff --git a/src/database/index.ts b/src/database/index.ts index 4e89084..1f122bf 100644 --- a/src/database/index.ts +++ b/src/database/index.ts @@ -16,7 +16,11 @@ if (!process.env.DB_URI) { process.exit(1); } -const sequelize = new Sequelize(process.env.DB_URI); +const sequelize = new Sequelize(process.env.DB_URI, { + logging: (msg) => { + if (process.env.DEBUG === 'true') console.log(msg) + } +}); const schemas = { BanRole: BanReaction(sequelize), diff --git a/src/index.ts b/src/index.ts index 27f2e8c..04591c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,4 +10,6 @@ async function main(): Promise { await login(); if (process.env.RELOADCMDS !== 'false') await updateSlashCommands(); await start(); -} \ No newline at end of file +} + +main(); \ No newline at end of file