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: {
|
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)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user