mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
fx
This commit is contained in:
@@ -200,6 +200,7 @@ class Transcriber(commands.Cog):
|
|||||||
logger.info("Transcriber queue id: %s",id(self.comm_queue))
|
logger.info("Transcriber queue id: %s",id(self.comm_queue))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
logger.info("waiting for tasks")
|
||||||
item = self.comm_queue.get()
|
item = self.comm_queue.get()
|
||||||
logger.info("Got %s", item)
|
logger.info("Got %s", item)
|
||||||
if item.type == "STOP":
|
if item.type == "STOP":
|
||||||
@@ -213,6 +214,8 @@ class Transcriber(commands.Cog):
|
|||||||
logger.info("%s : %s", item.user, utterance.text)
|
logger.info("%s : %s", item.user, utterance.text)
|
||||||
elif item.type == "user_cleanup":
|
elif item.type == "user_cleanup":
|
||||||
logger.info("User %s disconnected - cleanup action")
|
logger.info("User %s disconnected - cleanup action")
|
||||||
|
else:
|
||||||
|
logger.warn("Something went wrong with object %s", item)
|
||||||
logger.info("End transcript worker")
|
logger.info("End transcript worker")
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
|
|||||||
Reference in New Issue
Block a user