mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Change error messages
This commit is contained in:
parent
20adfe7b1f
commit
9256c3b3c7
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue