This commit is contained in:
2024-09-19 12:59:01 +02:00
parent c6c1c2f25d
commit 2d43f6a658
+2 -10
View File
@@ -141,17 +141,9 @@ class Transcriber(commands.Cog):
@commands.hybrid_command(name="transcribe")
async def test(self, ctx):
logger.info("Attempt transcribe")
if self.bot.voice_clients:
voice_client = self.bot.voice_clients[0]
if not voice_client.is_connected():
logger.info("Connecting to voice")
voice_client = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
voice_client.listen(self.wsink)
else:
voice_client = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
voice_client.listen(self.wsink)
vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)
logger.info("Connected")
vc.listen(self.wsink)
@commands.command(name="stop_transcribe")
async def stop(self, ctx):