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