From 9e1729aa290501e5a3da546455fe68e8c13ce212 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 2 Aug 2024 21:37:00 -0500 Subject: Change config validation - make more stuff optional --- code/cogs/play.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'code/cogs/play.py') diff --git a/code/cogs/play.py b/code/cogs/play.py index db21cf7..fdd0233 100644 --- a/code/cogs/play.py +++ b/code/cogs/play.py @@ -147,6 +147,14 @@ class Play(commands.Cog): ### elif "open.spotify.com" in query: + if not self.bot.spotify_headers: + embed = discord.Embed( + title="Spotify Error", + description="Spotify support seems to be broken at the moment. Please try again and fill out a bug report with if this continues to happen.", + color=BOT_COLOR, + ) + return await interaction.response.send_message(embed=embed, ephemeral=True) + embed = discord.Embed(color=BOT_COLOR) if "open.spotify.com/playlist" in query: -- cgit v1.2.3-70-g09d2