breg and added debug for db
This commit is contained in:
parent
0a8017af72
commit
a6741d87ec
2 changed files with 8 additions and 2 deletions
|
@ -16,7 +16,11 @@ if (!process.env.DB_URI) {
|
||||||
process.exit(1);
|
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 = {
|
const schemas = {
|
||||||
BanRole: BanReaction(sequelize),
|
BanRole: BanReaction(sequelize),
|
||||||
|
|
|
@ -10,4 +10,6 @@ async function main(): Promise<void> {
|
||||||
await login();
|
await login();
|
||||||
if (process.env.RELOADCMDS !== 'false') await updateSlashCommands();
|
if (process.env.RELOADCMDS !== 'false') await updateSlashCommands();
|
||||||
await start();
|
await start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main();
|
Loading…
Add table
Add a link
Reference in a new issue