mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-22 00:17:50 +00:00
Added history support and changed track fmting
This commit is contained in:
@@ -11,7 +11,7 @@ from cogs.music import track_embed
|
||||
if typing.TYPE_CHECKING:
|
||||
from bot import TuneBot
|
||||
|
||||
QUEUE_SIZE = config["queue_buffer_size"] + 1
|
||||
QUEUE_SIZE = config["queue_buffer_size"]
|
||||
|
||||
|
||||
class MusicCommands(app_commands.Group):
|
||||
@@ -47,7 +47,7 @@ class MusicCommands(app_commands.Group):
|
||||
if not player.is_playing:
|
||||
await player.play()
|
||||
|
||||
embed.title = "*⃣ | Connected."
|
||||
embed = track_embed.create_track_embed(player.current, player.queue, [])
|
||||
await ctx.response.send_message(embed=embed)
|
||||
|
||||
@app_commands.command(
|
||||
@@ -85,7 +85,9 @@ class MusicCommands(app_commands.Group):
|
||||
await ctx.response.send_message(embed=embed)
|
||||
return
|
||||
|
||||
embed = track_embed.create_track_embed(player.current, player.queue, [])
|
||||
embed = track_embed.create_track_embed(
|
||||
player.current, player.queue, player.history
|
||||
)
|
||||
await ctx.response.send_message(embed=embed)
|
||||
|
||||
@app_commands.command(name="queue", description="See what's ahead")
|
||||
|
||||
Reference in New Issue
Block a user