This commit is contained in:
2024-09-19 12:43:12 +02:00
parent 554852bc53
commit d3ac0ed0b1
+2 -2
View File
@@ -141,8 +141,8 @@ class Transcriber(commands.Cog):
@commands.hybrid_command(name="transcribe")
async def test(self, ctx):
logger.info("Attempt transcribe")
if ctx.client.voice_clients:
voice_client = ctx.client.voice_clients[0]
if self.bot.voice_clients:
voice_client = self.bot.voice_clients[0]
if not voice_client.is_connected():
logger.info("Connecting to voice")
vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)