|
|
@ -87,7 +87,7 @@ class Music(commands.Cog):
|
|
|
|
"""Streams from a url (same as yt, but doesn't predownload)"""
|
|
|
|
"""Streams from a url (same as yt, but doesn't predownload)"""
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
|
|
|
|
ctx.voice_client.play(player, 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))
|
|
|
|