mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fix asyncio sleep
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import logging
|
||||
import wave
|
||||
|
||||
import asyncio
|
||||
import assemblyai as aai
|
||||
import discord
|
||||
from discord.ext import commands, voice_recv, tasks
|
||||
@@ -131,7 +131,7 @@ class TranscriptionOutput(commands.Cog):
|
||||
@tasks.loop()
|
||||
async def scan_loop(self):
|
||||
while self.work:
|
||||
time.sleep(1.0)
|
||||
asyncio.sleep(1.0)
|
||||
logger.info("Output scan loop exited succesfully")
|
||||
|
||||
class Transcriber(commands.Cog):
|
||||
|
||||
Reference in New Issue
Block a user