provide ffmpegpcm
This commit is contained in:
parent
0114ea5cce
commit
8afc958017
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue