breg and added debug for db

This commit is contained in:
404invalid-user 2025-01-18 15:26:56 +00:00
parent 0a8017af72
commit a6741d87ec
2 changed files with 8 additions and 2 deletions

View file

@ -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),

View file

@ -10,4 +10,6 @@ async function main(): Promise<void> {
await login();
if (process.env.RELOADCMDS !== 'false') await updateSlashCommands();
await start();
}
}
main();