mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Adding new controllers
This commit is contained in:
@@ -8,7 +8,7 @@ from Music.Playlist import Playlist
|
||||
from Music.Searcher import Searcher
|
||||
from Music.Song import Song
|
||||
from Music.Types import Provider
|
||||
from Music.utils import *
|
||||
from Utils.Utils import *
|
||||
|
||||
|
||||
class Player(commands.Cog):
|
||||
@@ -28,6 +28,10 @@ class Player(commands.Cog):
|
||||
self.FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
|
||||
'options': '-vn'}
|
||||
|
||||
@property
|
||||
def playing(self) -> bool:
|
||||
return self.__playing
|
||||
|
||||
@property
|
||||
def playlist(self) -> Playlist:
|
||||
return self.__playlist
|
||||
@@ -212,6 +216,7 @@ class Player(commands.Cog):
|
||||
|
||||
def history(self) -> Embed:
|
||||
history = self.__playlist.songs_history
|
||||
print(f'Player -> {history}')
|
||||
|
||||
if len(history) == 0:
|
||||
text = self.__config.HISTORY_EMPTY
|
||||
|
||||
Reference in New Issue
Block a user