fix 'no apple music client' error

This commit is contained in:
cloudwithax 2023-02-09 22:38:43 -05:00
parent 3714656f0e
commit f104c7a2aa
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if not discord.version_info.major >= 2:
"using 'pip install discord.py'" "using 'pip install discord.py'"
) )
__version__ = "2.0" __version__ = "2.0.1a"
__title__ = "pomice" __title__ = "pomice"
__author__ = "cloudwithax" __author__ = "cloudwithax"

View File

@ -120,6 +120,8 @@ class Node:
self._spotify_client_id = spotify_client_id self._spotify_client_id = spotify_client_id
self._spotify_client_secret = spotify_client_secret self._spotify_client_secret = spotify_client_secret
self._apple_music_client = None
if self._spotify_client_id and self._spotify_client_secret: if self._spotify_client_id and self._spotify_client_secret:
self._spotify_client = spotify.Client( self._spotify_client = spotify.Client(
self._spotify_client_id, self._spotify_client_secret self._spotify_client_id, self._spotify_client_secret