forked from Galactic/galactic-bot
debug stuff
This commit is contained in:
parent
7420d565e1
commit
ced20a25f7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user