Implement "empty"/"clear" commands.

These commands allow emptying the current playlist. Here another reminder to implement a proper permission system soon!
develop
Icedream 2015-10-27 23:01:23 +01:00
parent 824b4b94bd
commit 4eed972a23
1 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,9 @@ ts3clientService.on "started", (ts3proc) =>
vlc.playlist.next()
when "prev", "previous"
vlc.playlist.prev()
when "empty", "clear"
vlc.playlist.clear()
ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist."
when "enqueue", "add", "append"
inputBB = paramline.trim()
input = (removeBB paramline).trim()