diff --git a/royalnet/commands/royalmusic/play.py b/royalnet/commands/royalmusic/play.py index c23cd0ef..154afaeb 100644 --- a/royalnet/commands/royalmusic/play.py +++ b/royalnet/commands/royalmusic/play.py @@ -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 diff --git a/royalnet/commands/royalmusic/soundcloud.py b/royalnet/commands/royalmusic/soundcloud.py index a99c9702..4ed646d4 100644 --- a/royalnet/commands/royalmusic/soundcloud.py +++ b/royalnet/commands/royalmusic/soundcloud.py @@ -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 diff --git a/royalnet/commands/royalmusic/youtube.py b/royalnet/commands/royalmusic/youtube.py index 99fae98e..888c00b1 100644 --- a/royalnet/commands/royalmusic/youtube.py +++ b/royalnet/commands/royalmusic/youtube.py @@ -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