Added history support and changed track fmting

This commit is contained in:
2022-11-13 18:08:44 +01:00
parent 765b23e8fe
commit 7fd7e5ffa7
6 changed files with 55 additions and 52 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ from tunebot.redis import GlobalRedisPlaylistSource
from tunebot.redis import RedisAutoJoin
from tunebot.redis import RedisPlaylistSource
from utils.assets import process_colours
from lavalink_player import CustomPlayer
from utils.log import logger
if TYPE_CHECKING:
@@ -127,7 +128,7 @@ class TuneBot(commands.Bot):
def create_lavalink(self, user_id: int) -> "lavalink.Client":
cfg = self.config["lavalink"]
client: lavalink.Client = lavalink.Client(user_id)
client: lavalink.Client = lavalink.Client(user_id, player=CustomPlayer)
client.add_node(
cfg["host"],
cfg["port"],