From 9187d7af59329ff24458d57bf6206d5fbe03380d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 20 Apr 2019 12:13:04 +0200 Subject: [PATCH] Allow spaces in url --- royalnet/commands/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/commands/play.py b/royalnet/commands/play.py index 4bc7fdb8..07e77a42 100644 --- a/royalnet/commands/play.py +++ b/royalnet/commands/play.py @@ -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].")