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