This commit is contained in:
2024-09-20 17:07:37 +02:00
parent 590ab187d8
commit 024c42a800
+3
View File
@@ -200,6 +200,7 @@ class Transcriber(commands.Cog):
logger.info("Transcriber queue id: %s",id(self.comm_queue))
while True:
logger.info("waiting for tasks")
item = self.comm_queue.get()
logger.info("Got %s", item)
if item.type == "STOP":
@@ -213,6 +214,8 @@ class Transcriber(commands.Cog):
logger.info("%s : %s", item.user, utterance.text)
elif item.type == "user_cleanup":
logger.info("User %s disconnected - cleanup action")
else:
logger.warn("Something went wrong with object %s", item)
logger.info("End transcript worker")
async def setup(bot):