Now using hyperlinks in Queue and adding support message as random string

This commit is contained in:
Rafael Vargas
2022-09-07 21:47:09 -03:00
parent 5f60c12179
commit ba57a3e18d
5 changed files with 19 additions and 4 deletions

View File

@@ -74,8 +74,8 @@ class QueueHandler(AbstractHandler):
# To work get the correct index of all songs
startIndex = (pageNumber * self.config.MAX_SONGS_IN_PAGE) + 1
for pos, song in enumerate(songs, start=startIndex):
song_name = song.title if song.title else self.messages.SONG_DOWNLOADING
text += f"**`{pos}` - ** {song_name} - `{Utils.format_time(song.duration)}`\n"
song_name = song.title[:50] if song.title else self.messages.SONG_DOWNLOADING
text += f"**`{pos}` - ** [{song_name}]({song.identifier}) - `{Utils.format_time(song.duration)}`\n"
embed = self.embeds.QUEUE(title, text)
# Release the acquired Lock