This commit is contained in:
2024-09-20 14:27:46 +02:00
parent b025790b3d
commit e628b18354
-4
View File
@@ -155,8 +155,6 @@ class Transcriber(commands.Cog):
logger.info("Connected")
vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
logger.info(self.bot.voice_clients)
self.output_handler.work = True
self.output_handler.scan_loop.start()
self.worker.start()
vc.listen(self.wsink)
@@ -206,8 +204,6 @@ class Transcriber(commands.Cog):
@commands.command(name="stop_transcribe")
async def stop(self, ctx):
self.output_handler.work = False
self.check_data.stop()
self.worker.stop()
await ctx.voice_client.disconnect()