mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-22 02:57:49 +00:00
Added history support and changed track fmting
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user