From d66d297a338bbcd5f4729ac2ffff2c92c7d8f7a0 Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Sun, 23 Nov 2025 16:12:58 +0100 Subject: [PATCH] Fix await issue by Adding await to asyncio.sleep. replace build_command location --- mods/votekick/mod_votekick.py | 2 +- mods/votekick/threads.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/votekick/mod_votekick.py b/mods/votekick/mod_votekick.py index 86aa308..b605f13 100644 --- a/mods/votekick/mod_votekick.py +++ b/mods/votekick/mod_votekick.py @@ -88,7 +88,7 @@ class Votekick(IModule): self.VoteKickManager.VOTE_CHANNEL_DB = metadata # Créer les nouvelles commandes du module - self.ctx.Irc.build_command(1, self.module_name, 'vote', 'The kick vote module') + self.ctx.Commands.build_command(1, self.module_name, 'vote', 'The kick vote module') async def unload(self) -> None: try: diff --git a/mods/votekick/threads.py b/mods/votekick/threads.py index 14eb209..44e14ee 100644 --- a/mods/votekick/threads.py +++ b/mods/votekick/threads.py @@ -12,7 +12,7 @@ async def timer_vote_verdict(uplink: 'Votekick', channel: str) -> None: if not uplink.VoteKickManager.is_vote_ongoing(channel): return None - asyncio.sleep(60) + await asyncio.sleep(60) votec = uplink.VoteKickManager.get_vote_channel_model(channel) if votec: