diff options
author | Parker <contact@pkrm.dev> | 2024-08-02 21:37:00 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-08-02 21:37:00 -0500 |
commit | 9e1729aa290501e5a3da546455fe68e8c13ce212 (patch) | |
tree | 49d1c9f92a7493129b923455b768c6ab96048693 /code/cogs/play.py | |
parent | 1bffa26776f6c80e2f2513d236f78ce9b7eea39f (diff) |
Change config validation - make more stuff optional
Diffstat (limited to 'code/cogs/play.py')
-rw-r--r-- | code/cogs/play.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 </bug:1224840889906499626> 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: |