Skip to content

Commit 4edc1cb

Browse files
Remove message count requirement from voice gate and make activity block requirement more vague (#3387)
* made voice gate failure reason phrasing more consistent * added word for clarification and to split numbers * made voice gate activity messages less informative * removed message count check and removed extraneous period from message * Update bot/exts/moderation/voice_gate.py Co-authored-by: Vivek Ashokkumar <vivekashok1221@gmail.com> --------- Co-authored-by: Vivek Ashokkumar <vivekashok1221@gmail.com>
1 parent 2640aaa commit 4edc1cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bot/exts/moderation/voice_gate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
)
2929

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

3736
VOICE_PING = (
@@ -94,7 +93,6 @@ async def voice_button(self, interaction: discord.Interaction, button: discord.u
9493
"joined_at": (
9594
interaction.user.joined_at > arrow.utcnow() - timedelta(days=GateConf.minimum_days_member)
9695
),
97-
"total_messages": data["total_messages"] < GateConf.minimum_messages,
9896
"voice_gate_blocked": data["voice_gate_blocked"],
9997
"activity_blocks": data["activity_blocks"] < GateConf.minimum_activity_blocks,
10098
}

0 commit comments

Comments
 (0)