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: { autoModeration: {
enabled: true, enabled: true,
thresholds: { thresholds: {
'10': { '35': {
type: 'KICK', type: 'MUTE',
length: 3600 length: 3600
} }
} }
@ -35,7 +35,7 @@ class AutoModerationSetting extends Setting {
fields(guild) { fields(guild) {
return { return {
name: "》 Status", 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; continue;
} }
infraction.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp }); escalation.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp });
escalation.totalPoints = infraction.totalPoints;
responses.push(await escalation.execute()); responses.push(await escalation.execute());
continue; continue;
} else {
infraction.totalPoints = await userTarget.totalPoints(message.guild, { points, expiration, timestamp: infraction.timestamp });
} }
} }
} }