mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Allow spaces in url
This commit is contained in:
parent
4ed802ff43
commit
9187d7af59
1 changed files with 1 additions and 1 deletions
|
@ -48,6 +48,6 @@ class PlayCommand(Command):
|
|||
|
||||
@classmethod
|
||||
async def common(cls, call: Call):
|
||||
guild, url = call.args.match(r"(?:\[(.+)])?\s*(\S+)\s*")
|
||||
guild, url = call.args.match(r"(?:\[(.+)])?\s*(.+)")
|
||||
response: RequestSuccessful = await call.net_request(PlayMessage(url, guild), "discord")
|
||||
await call.reply(f"✅ Richiesta la riproduzione di [c]{url}[/c].")
|
||||
|
|
Loading…
Reference in a new issue