1
This commit is contained in:
2
main.py
2
main.py
@@ -89,7 +89,7 @@ class Music(commands.Cog):
|
|||||||
|
|
||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=True)
|
player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=True)
|
||||||
ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
|
ctx.voice_client.play("ffmpeg.exe", after=lambda e: print('Player error: %s' % e) if e else None)
|
||||||
|
|
||||||
await ctx.send('Now playing: {}'.format(player.title))
|
await ctx.send('Now playing: {}'.format(player.title))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user