forked from Galactic/galactic-bot
more fixes
This commit is contained in:
parent
62018ad8b4
commit
6fef7914ba
@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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 });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user