diff options
author | Parker <contact@pkrm.dev> | 2025-03-25 23:03:45 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2025-03-25 23:03:45 -0500 |
commit | e578077df3f9af70befa6fa69d4dfcedb5986ce1 (patch) | |
tree | 53dacb3ff61a955e127bad80798d7517bd397f35 /code/cogs/play.py | |
parent | 06034d0b373a9aed5033c2e670950f765e285c2a (diff) |
Add toggle command
Diffstat (limited to 'code/cogs/play.py')
-rw-r--r-- | code/cogs/play.py | 18 |
1 files changed, 17 insertions, 1 deletions
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 " + " </bug:1224840889906499626> 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( |