This commit is contained in:
aliasless 2020-04-09 09:23:23 +00:00
parent 61eb1d55c3
commit 416b919d60
1 changed files with 1 additions and 5 deletions

View File

@ -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