Remove unnecessary comments
This commit is contained in:
parent
98ecfaa875
commit
e036835bf4
|
@ -16,8 +16,6 @@ class Music(commands.Cog):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def stream(self, ctx, *, url):
|
async def stream(self, ctx, *, url):
|
||||||
"""Streams from a url"""
|
|
||||||
|
|
||||||
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(f"Player error: {e}") if e else None)
|
ctx.voice_client.play(player, after=lambda e: print(f"Player error: {e}") if e else None)
|
||||||
|
@ -26,7 +24,6 @@ class Music(commands.Cog):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def stop(self, ctx):
|
async def stop(self, ctx):
|
||||||
"""Stops and disconnects the bot from voice"""
|
|
||||||
await ctx.voice_client.disconnect()
|
await ctx.voice_client.disconnect()
|
||||||
|
|
||||||
@stream.before_invoke
|
@stream.before_invoke
|
||||||
|
|
Loading…
Reference in New Issue