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

Use command error in zawarudo

This commit is contained in:
Steffo 2019-11-07 19:44:35 +01:00
parent 16c5435ead
commit 5560bc82e5

View file

@ -32,8 +32,7 @@ class ZawarudoCommand(Command):
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):
# TODO: change Exception raise CommandError("No music_data for this guild")
raise Exception("No music_data for this guild")
# Create url # Create url
ytdl_args = { ytdl_args = {
"format": "bestaudio", "format": "bestaudio",