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

Change !fw error message

This commit is contained in:
Steffo 2020-01-13 14:53:05 +01:00
parent e35b1c4733
commit 67018e5a59

View file

@ -20,5 +20,5 @@ class FunkwhaleCommand(PlayCommand):
f"/api/v1/search?query={search}") as response: f"/api/v1/search?query={search}") as response:
j = await response.json() j = await response.json()
if len(j["tracks"]) < 1: if len(j["tracks"]) < 1:
raise InvalidInputError("Nessun video trovato.") raise UserError("Nessun file audio trovato con il nome richiesto.")
return f'{self.config["Funkwhale"]["instance_url"]}{j["tracks"][0]["listen_url"]}' return f'{self.config["Funkwhale"]["instance_url"]}{j["tracks"][0]["listen_url"]}'