provide ffmpegpcm

This commit is contained in:
deflax 2022-03-27 23:29:02 -04:00
parent 0114ea5cce
commit 8afc958017

View file

@ -82,6 +82,10 @@ async def on_voice_state_update(member, before, after):
isConnected = True isConnected = True
await debug_channel.send('] connecting to #' + voice_channel_id) await debug_channel.send('] connecting to #' + voice_channel_id)
voiceChannel = await voice_channel.connect() voiceChannel = await voice_channel.connect()
player = voice_channel.play(discord.FFmpegPCMAudio(os.environ['url'])
while not player.is_done():
await asyncio.sleep(1)
return return
if member_ids == 1 and isConnected == True: if member_ids == 1 and isConnected == True: