diff --git a/voice_recognition.py b/voice_recognition.py index 53f9361..79851f3 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -128,8 +128,8 @@ class TranscriptionOutput(commands.Cog): self.bot = bot self.queue = queue self.work = False - @discord.ext.tasks.loop() - def scan_loop(self): + @tasks.loop() + async def scan_loop(self): while self.work: time.sleep(1.0) logger.info("Output scan loop exited succesfully")