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

Translate zawarudo error messages

This commit is contained in:
Steffo 2019-11-08 17:56:41 +01:00
parent 19d5f1d627
commit 434cb21785

View file

@ -26,13 +26,13 @@ class ZawarudoCommand(Command):
else: else:
guilds = bot.client.guilds guilds = bot.client.guilds
if len(guilds) == 0: if len(guilds) == 0:
raise CommandError("No guilds with the specified name found.") raise CommandError("Server non trovato.")
if len(guilds) > 1: if len(guilds) > 1:
raise CommandError("Multiple guilds with the specified name found.") raise CommandError("Il nome del server è ambiguo.")
guild = list(bot.client.guilds)[0] guild = list(bot.client.guilds)[0]
# Ensure the guild has a PlayMode before adding the file to it # Ensure the guild has a PlayMode before adding the file to it
if not bot.music_data.get(guild): if not bot.music_data.get(guild):
raise CommandError("No music_data for this guild") raise CommandError("Il bot non è in nessun canale vocale.")
# Create url # Create url
ytdl_args = { ytdl_args = {
"format": "bestaudio", "format": "bestaudio",