diff --git a/structure/client/components/settings/moderation/AutoModeration.js b/structure/client/components/settings/moderation/AutoModeration.js index e4ab7a4..d7a170b 100644 --- a/structure/client/components/settings/moderation/AutoModeration.js +++ b/structure/client/components/settings/moderation/AutoModeration.js @@ -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) }; } diff --git a/structure/moderation/ModerationManager.js b/structure/moderation/ModerationManager.js index 9ac3e9e..fa205b5 100644 --- a/structure/moderation/ModerationManager.js +++ b/structure/moderation/ModerationManager.js @@ -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 }); + } + } }