Let's try if this fixes it
This commit is contained in:
parent
330426b2d3
commit
a10ed8ef29
@ -70,10 +70,9 @@ class TCardCommand(commands.Cog, name='T-Card Command'):
|
||||
"""Do the audio thing."""
|
||||
for vc in ctx.channel.category.voice_channels:
|
||||
v = await vc.connect()
|
||||
tcardaudio = discord.PCMAudio(open("./assets/tcard.wav", "rb"))
|
||||
tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb"))
|
||||
v.play(tcardaudio)
|
||||
while v.is_playing():
|
||||
time.sleep(1)
|
||||
while v.is_playing(): time.sleep(.1)
|
||||
await v.disconnect()
|
||||
else:
|
||||
"""Send a T-Card to the immediate channel if this is a generic channel."""
|
||||
|
Loading…
Reference in New Issue
Block a user