1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Allow spaces in url

This commit is contained in:
Steffo 2019-04-20 12:13:04 +02:00
parent 4ed802ff43
commit 9187d7af59

View file

@ -48,6 +48,6 @@ class PlayCommand(Command):
@classmethod @classmethod
async def common(cls, call: Call): 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") response: RequestSuccessful = await call.net_request(PlayMessage(url, guild), "discord")
await call.reply(f"✅ Richiesta la riproduzione di [c]{url}[/c].") await call.reply(f"✅ Richiesta la riproduzione di [c]{url}[/c].")