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

Change error messages

This commit is contained in:
Steffo 2019-10-10 12:39:36 +02:00
parent 20adfe7b1f
commit 9256c3b3c7
3 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ class PlayCommand(Command):
" or SoundcloudCommand!")
response = await self.interface.net_request(Request("music_play", {"url": url, "guild_name": guild_name}), "discord")
if len(response["videos"]) == 0:
await data.reply(f"⚠️ Nessun video trovato.")
raise CommandError(f"Nessun file trovato.")
for video in response["videos"]:
if self.interface.name == "discord":
# This is one of the unsafest things ever

View file

@ -74,7 +74,7 @@ class SoundcloudCommand(Command):
"guild_name": guild_name}),
"discord")
if len(response["videos"]) == 0:
await data.reply(f"⚠️ Nessun video trovato.")
raise CommandError(f"Nessun audio trovato.")
for video in response["videos"]:
if self.interface.name == "discord":
# This is one of the unsafest things ever

View file

@ -73,7 +73,7 @@ class YoutubeCommand(Command):
"guild_name": guild_name}),
"discord")
if len(response["videos"]) == 0:
await data.reply(f"⚠️ Nessun video trovato.")
raise CommandError(f"Il bot non è riuscito a scaricare il video richiesto a causa di un blocco imposto da YouTube.")
for video in response["videos"]:
if self.interface.name == "discord":
# This is one of the unsafest things ever