From e578077df3f9af70befa6fa69d4dfcedb5986ce1 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 25 Mar 2025 23:03:45 -0500 Subject: Add toggle command --- code/cogs/play.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'code/cogs/play.py') diff --git a/code/cogs/play.py b/code/cogs/play.py index 76704ac..5ff1eb6 100644 --- a/code/cogs/play.py +++ b/code/cogs/play.py @@ -6,7 +6,7 @@ from lavalink import LoadType import re from cogs.music import Music, LavalinkVoiceClient -from utils.config import YOUTUBE_SUPPORT, create_embed +from utils.config import YOUTUBE_SUPPORT, YOUTUBE_BROKEN, create_embed from utils.custom_sources import ( LoadError, CustomAudioTrack, @@ -45,6 +45,22 @@ class Play(commands.Cog): embed=embed, ephemeral=True ) + if YOUTUBE_BROKEN: + embed = create_embed( + title="YouTube Broken", + description=( + "YouTube support is currently broken. This is a known" + " issue and is being actively worked on, please try" + " again later. Other sources should still be in" + " working order. Submit a bug report with " + " if issues persist. Sorry" + " for the inconvenience." + ), + ) + return await interaction.response.send_message( + embed=embed, ephemeral=True + ) + # Check for custom sources (Apple Music/Spotify) if "music.apple.com" in query: results, embed = await parse_custom_source( -- cgit v1.2.3-70-g09d2