mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Revert
This commit is contained in:
+2
-10
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user