mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
96 lines
5.7 KiB
Python
96 lines
5.7 KiB
Python
from Config.Singleton import Singleton
|
|
from Config.Configs import Configs
|
|
|
|
|
|
class Messages(Singleton):
|
|
def __init__(self) -> None:
|
|
if not super().created:
|
|
configs = Configs()
|
|
self.STARTUP_MESSAGE = 'Starting Vulkan...'
|
|
self.STARTUP_COMPLETE_MESSAGE = 'Vulkan is now operating.'
|
|
|
|
self.SONGINFO_UPLOADER = "Uploader: "
|
|
self.SONGINFO_DURATION = "Duration: "
|
|
self.SONGINFO_REQUESTER = 'Requester: '
|
|
self.SONGINFO_POSITION = 'Position: '
|
|
|
|
self.SONGS_ADDED = 'You added {} songs to the queue'
|
|
self.SONG_ADDED = 'You added the song `{}` to the queue'
|
|
self.SONG_ADDED_TWO = '🎧 Song added to the queue'
|
|
self.SONG_PLAYING = '🎧 Song playing now'
|
|
self.SONG_PLAYER = '🎧 Song Player'
|
|
self.QUEUE_TITLE = '🎧 Songs in Queue'
|
|
self.ONE_SONG_LOOPING = '🎧 Looping One Song'
|
|
self.ALL_SONGS_LOOPING = '🎧 Looping All Songs'
|
|
self.SONG_PAUSED = '⏸️ Song paused'
|
|
self.SONG_RESUMED = '▶️ Song playing'
|
|
self.EMPTY_QUEUE = f'📜 Song queue is empty, use {configs.BOT_PREFIX}play to add new songs'
|
|
self.SONG_DOWNLOADING = '📥 Downloading...'
|
|
|
|
self.HISTORY_TITLE = '🎧 Played Songs'
|
|
self.HISTORY_EMPTY = '📜 There is no musics in history'
|
|
|
|
self.SONG_MOVED_SUCCESSFULLY = 'Song `{}` in position `{}` moved to the position `{}` successfully'
|
|
self.SONG_REMOVED_SUCCESSFULLY = 'Song `{}` removed successfully'
|
|
|
|
self.LOOP_ALL_ON = f'❌ Vulkan is looping all songs, use {configs.BOT_PREFIX}loop off to disable this loop first'
|
|
self.LOOP_ONE_ON = f'❌ Vulkan is looping one song, use {configs.BOT_PREFIX}loop off to disable this loop first'
|
|
self.LOOP_ALL_ALREADY_ON = '🔁 Vulkan is already looping all songs'
|
|
self.LOOP_ONE_ALREADY_ON = '🔂 Vulkan is already looping the current song'
|
|
self.LOOP_ALL_ACTIVATE = '🔁 Looping all songs'
|
|
self.LOOP_ONE_ACTIVATE = '🔂 Looping the current song'
|
|
self.LOOP_DISABLE = '➡️ Loop disabled'
|
|
self.LOOP_ALREADY_DISABLE = '❌ Loop is already disabled'
|
|
self.LOOP_ON = f'❌ This command cannot be invoked with any loop activated. Use {configs.BOT_PREFIX}loop off to disable loop'
|
|
|
|
self.SONGS_SHUFFLED = '🔀 Songs shuffled successfully'
|
|
self.ERROR_SHUFFLING = '❌ Error while shuffling the songs'
|
|
self.ERROR_MOVING = '❌ Error while moving the songs'
|
|
self.LENGTH_ERROR = '❌ Numbers must be between 1 and queue length, use -1 for the last song'
|
|
self.ERROR_NUMBER = '❌ This command require a number'
|
|
self.ERROR_PLAYING = '❌ Error while playing songs'
|
|
self.COMMAND_NOT_FOUND = f'❌ Command not found, type {configs.BOT_PREFIX}help to see all commands'
|
|
self.UNKNOWN_ERROR = f'❌ Unknown Error, if needed, use {configs.BOT_PREFIX}reset to reset the player of your server'
|
|
self.ERROR_MISSING_ARGUMENTS = f'❌ Missing arguments in this command. Type {configs.BOT_PREFIX}help "command" to see more info about this command'
|
|
self.NOT_PREVIOUS = '❌ There is none previous song to play'
|
|
self.PLAYER_NOT_PLAYING = f'❌ No song playing. Use {configs.BOT_PREFIX}play to start the player'
|
|
self.IMPOSSIBLE_MOVE = 'That is impossible :('
|
|
self.ERROR_TITLE = 'Error :-('
|
|
self.NO_CHANNEL = 'To play some music, connect to any voice channel first.'
|
|
self.NO_GUILD = f'This server does not has a Player, try {configs.BOT_PREFIX}reset'
|
|
self.INVALID_INPUT = f'This type of input was too strange, try something better or type {configs.BOT_PREFIX}help play'
|
|
self.DOWNLOADING_ERROR = '❌ An error occurred while downloading'
|
|
self.EXTRACTING_ERROR = '❌ An error ocurred while searching for the songs'
|
|
|
|
self.MY_ERROR_BAD_COMMAND = 'This string serves to verify if some error was raised by myself on purpose'
|
|
self.BAD_COMMAND_TITLE = 'Misuse of command'
|
|
self.BAD_COMMAND = f'❌ Bad usage of this command, type {configs.BOT_PREFIX}help "command" to understand the command better'
|
|
self.VIDEO_UNAVAILABLE = '❌ Sorry. This video is unavailable for download.'
|
|
self.ERROR_DUE_LOOP_ONE_ON = f'❌ This command cannot be executed with loop one activated. Use {configs.BOT_PREFIX}loop off to disable loop.'
|
|
|
|
|
|
class SearchMessages(Singleton):
|
|
def __init__(self) -> None:
|
|
if not super().created:
|
|
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.GENERIC_TITLE = 'URL could not be processed'
|
|
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):
|
|
def __init__(self) -> None:
|
|
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'
|