diff options
| author | 2020-11-08 23:50:49 +0100 | |
|---|---|---|
| committer | 2020-11-08 23:50:49 +0100 | |
| commit | d6820a2209f1605349456801c0e8e6f2045b1649 (patch) | |
| tree | b89ba1aeb9eb1af79ce95b8c8d962dfbddfd98e7 | |
| parent | Voice Gate: fix cache membership check (diff) | |
Voice Gate: refer to config rather than hard-coded duration
The const was introduced for this purpose, but it was accidentally
not being used.
| -rw-r--r-- | bot/exts/moderation/voice_gate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/voice_gate.py b/bot/exts/moderation/voice_gate.py index 2e8305227..6e6f4411b 100644 --- a/bot/exts/moderation/voice_gate.py +++ b/bot/exts/moderation/voice_gate.py @@ -217,7 +217,7 @@ class VoiceGate(Cog): message = await voice_verification_channel.send(f"Hello, {member.mention}! {VOICE_PING}") await self.redis_cache.set(member.id, message.id) - await asyncio.sleep(60) + await asyncio.sleep(GateConf.voice_ping_delete_delay) if message := await self.redis_cache.get(member.id): await message.delete() await self.redis_cache.set(member.id, NO_MSG) |