mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 11:14:23 +00:00
Fix await issue by Adding await to asyncio.sleep. replace build_command location
This commit is contained in:
@@ -88,7 +88,7 @@ class Votekick(IModule):
|
|||||||
self.VoteKickManager.VOTE_CHANNEL_DB = metadata
|
self.VoteKickManager.VOTE_CHANNEL_DB = metadata
|
||||||
|
|
||||||
# Créer les nouvelles commandes du module
|
# 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:
|
async def unload(self) -> None:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ async def timer_vote_verdict(uplink: 'Votekick', channel: str) -> None:
|
|||||||
if not uplink.VoteKickManager.is_vote_ongoing(channel):
|
if not uplink.VoteKickManager.is_vote_ongoing(channel):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
asyncio.sleep(60)
|
await asyncio.sleep(60)
|
||||||
|
|
||||||
votec = uplink.VoteKickManager.get_vote_channel_model(channel)
|
votec = uplink.VoteKickManager.get_vote_channel_model(channel)
|
||||||
if votec:
|
if votec:
|
||||||
|
|||||||
Reference in New Issue
Block a user