Skip to content

Commit

Permalink
removed unsupression since we moved back to voice channels
Browse files Browse the repository at this point in the history
  • Loading branch information
99oblivius committed Sep 20, 2024
1 parent 77e362c commit 7441a73
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/cogs/matches/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ async def on_ready(self):
loop = asyncio.get_event_loop()
load_ongoing_matches(loop, self.bot, GUILD_ID, matches)

@commands.Cog.listener()
async def on_voice_state_update(self, member: nextcord.Member, before: nextcord.VoiceState, after: nextcord.VoiceState):
match_stages = self.bot.match_stages
if (after.channel
and after.channel.id in match_stages
and member.id in match_stages[after.channel.id]
and member.voice.requested_to_speak_at is None
and after.suppress
):
await asyncio.sleep(0.5)
await member.edit(suppress=False)
# @commands.Cog.listener()
# async def on_voice_state_update(self, member: nextcord.Member, before: nextcord.VoiceState, after: nextcord.VoiceState):
# match_stages = self.bot.match_stages
# if (after.channel
# and after.channel.id in match_stages
# and member.id in match_stages[after.channel.id]
# and member.voice.requested_to_speak_at is None
# and after.suppress
# ):
# await asyncio.sleep(1)
# await member.edit(suppress=False)

#####################
# MM SLASH COMMANDS #
Expand Down

0 comments on commit 7441a73

Please sign in to comment.