more fixes

This commit is contained in:
nolan 2020-08-31 10:04:23 -07:00
parent 62018ad8b4
commit 6fef7914ba
2 changed files with 8 additions and 6 deletions

View File

@ -12,8 +12,8 @@ class AutoModerationSetting extends Setting {
autoModeration: {
enabled: true,
thresholds: {
'10': {
type: 'KICK',
'35': {
type: 'MUTE',
length: 3600
}
}
@ -35,7 +35,7 @@ class AutoModerationSetting extends Setting {
fields(guild) {
return {
name: "》 Status",
value: guild.format('SETTING_STATUS', { bool: Boolean(guild._settings.silent) }, true)
value: guild.format('SETTING_STATUS', { bool: Boolean(guild._settings.autoModeration.enabled) }, true)
};
}

View File

@ -147,12 +147,14 @@ class ModerationManager {
continue;
}
infraction.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp });
escalation.totalPoints = infraction.totalPoints;
escalation.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp });
responses.push(await escalation.execute());
continue;
}
} else {
infraction.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp });
}
}
}