While we're on it, fine-tuning the playlist message.

develop
Icedream 2015-10-27 23:19:40 +01:00
parent d61d85e020
commit eb00dc2f87
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ ts3clientService.on "started", (ts3proc) =>
vlc.playlist.clear() vlc.playlist.clear()
ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist." ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist."
when "list", "playlist" when "list", "playlist"
message = "Currently these tracks are in the playlist:\n" message = "Currently there are #{vlc.playlist.items.count} tracks are in the playlist"
message += if vlc.playlist.items.count > 0 then ":\n" else "."
for i in [ 0 ... vlc.playlist.items.count ] for i in [ 0 ... vlc.playlist.items.count ]
if vlc.playlist.currentItem == i if vlc.playlist.currentItem == i
message += "[COLOR=green][B]" message += "[COLOR=green][B]"