mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Audio] Fix [p]song with local tracks (#479)
This commit is contained in:
parent
59d4604462
commit
630bee8cb6
@ -122,7 +122,7 @@ class Song:
|
|||||||
self.id = kwargs.pop('id', None)
|
self.id = kwargs.pop('id', None)
|
||||||
self.url = kwargs.pop('url', None)
|
self.url = kwargs.pop('url', None)
|
||||||
self.webpage_url = kwargs.pop('webpage_url', "")
|
self.webpage_url = kwargs.pop('webpage_url', "")
|
||||||
self.duration = kwargs.pop('duration', "")
|
self.duration = kwargs.pop('duration', 60)
|
||||||
|
|
||||||
|
|
||||||
class Playlist:
|
class Playlist:
|
||||||
@ -1158,7 +1158,7 @@ class Audio:
|
|||||||
await send_cmd_help(ctx)
|
await send_cmd_help(ctx)
|
||||||
|
|
||||||
@local.command(name="start", pass_context=True, no_pm=True)
|
@local.command(name="start", pass_context=True, no_pm=True)
|
||||||
async def play_local(self, ctx, name):
|
async def play_local(self, ctx, *, name):
|
||||||
"""Plays a local playlist"""
|
"""Plays a local playlist"""
|
||||||
server = ctx.message.server
|
server = ctx.message.server
|
||||||
author = ctx.message.author
|
author = ctx.message.author
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user