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: