debug stuff

This commit is contained in:
Erik 2022-07-07 18:48:40 +03:00
parent 7420d565e1
commit ced20a25f7
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -35,13 +35,13 @@ class SettingsMigrator {
}
async connect() {
this.logger.info(`Connecting to mongo: ${this._config.database}`);
this.logger.info(`Connecting to mongo: ${this._config.database} for ${this.guild}`);
await this.mongo.init();
this.logger.info(`Mongo connected`);
}
async end() {
this.logger.info(`Disconnecting ${this._config.database}`);
this.logger.info(`Disconnecting ${this._config.database} for ${this.guild}`);
await this.mongo.close();
this.logger.info(`Disconnected`);
}
@ -207,6 +207,7 @@ class SettingsMigrator {
}
'2'(result) {
console.log(result);
const { moderation, modlogs, muterole, mutetype, automod, wordFilter, ignore, invitefilter,
chatlogs, activity, selfrole, killitwithfire, memberlogs, staffRole, staffRule, modpoints,
userlogs, grantable, privatelog, linkfilter, autorole, welcomer, prefix, protection } = result;
@ -404,6 +405,7 @@ class SettingsMigrator {
if (privatelog.onban) settings.dminfraction.messages.BAN = moderation.onban;
}
console.log(settings);
return settings;
}