Adding Deezer Module and Deezer Tests

This commit is contained in:
Rafael Vargas
2022-07-10 16:08:22 -03:00
parent c826af229c
commit 863b079a01
11 changed files with 232 additions and 21 deletions

View File

@@ -75,10 +75,10 @@ class SearchMessages(Singleton):
config = Configs()
self.UNKNOWN_INPUT = f'This type of input was too strange, try something else or type {config.BOT_PREFIX}help play'
self.UNKNOWN_INPUT_TITLE = 'Nothing Found'
self.SPOTIFY_ERROR = 'Spotify could not process any songs with this input, verify your link or try again later.'
self.GENERIC_TITLE = 'URL could not be processed'
self.YOUTUBE_ERROR = 'Youtube could not process any songs with this input, verify your link or try again later.'
self.INVALID_SPOTIFY_URL = 'Invalid Spotify URL, verify your link.'
self.SPOTIFY_NOT_FOUND = 'Spotify could not process any songs with this input, verify your link or try again later.'
self.YOUTUBE_NOT_FOUND = 'Youtube could not process any songs with this input, verify your link or try again later.'
self.DEEZER_NOT_FOUND = 'Deezer could not process any songs with this input, verify your link or try again later.'
class SpotifyMessages(Singleton):
@@ -86,3 +86,10 @@ class SpotifyMessages(Singleton):
if not super().created:
self.INVALID_SPOTIFY_URL = 'Invalid Spotify URL, verify your link.'
self.GENERIC_TITLE = 'URL could not be processed'
class DeezerMessages(Singleton):
def __init__(self) -> None:
if not super().created:
self.INVALID_DEEZER_URL = 'Invalid Deezer URL, verify your link.'
self.GENERIC_TITLE = 'URL could not be processed'