This commit is contained in:
parent
61eb1d55c3
commit
416b919d60
|
@ -25,11 +25,7 @@ def update(func):
|
|||
|
||||
voice_client = await channel.connect()
|
||||
source = discord.FFmpegOpusAudio(filename)
|
||||
voice_client.play(source, after=lambda e: print('fucky wucky: %s' % e) if e else None)
|
||||
|
||||
while voice_client.is_playing():
|
||||
pass
|
||||
await voice_client.disconnect()
|
||||
voice_client.play(source, after = lambda _: voice_client.disconnect())
|
||||
|
||||
print(filename + " played at " + str(datetime.now()))
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in New Issue