Skip to content
6 changes: 2 additions & 4 deletions bot/exts/moderation/voice_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
)

MESSAGE_FIELD_MAP = {
"joined_at": f"been on the server for less than {GateConf.minimum_days_member} days",
"joined_at": f"been on the server for fewer than {GateConf.minimum_days_member} days",
"voice_gate_blocked": "an active voice infraction",
"total_messages": f"sent less than {GateConf.minimum_messages} messages",
"activity_blocks": f"been active for fewer than {GateConf.minimum_activity_blocks} ten-minute blocks",
"activity_blocks": "not been active enough on the server yet",
}

VOICE_PING = (
Expand Down Expand Up @@ -94,7 +93,6 @@ async def voice_button(self, interaction: discord.Interaction, button: discord.u
"joined_at": (
interaction.user.joined_at > arrow.utcnow() - timedelta(days=GateConf.minimum_days_member)
),
"total_messages": data["total_messages"] < GateConf.minimum_messages,
"voice_gate_blocked": data["voice_gate_blocked"],
"activity_blocks": data["activity_blocks"] < GateConf.minimum_activity_blocks,
}
Expand Down