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
+5 -3
View File
@@ -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")