Completely remove handler for vlc.onEndReached.

onEndReached does not just trigger the callback at the end of the playlist but actually at the end of each track. This should have been better documented.
develop
Icedream 2015-10-28 00:21:54 +01:00
parent 4d25c2b822
commit f3157857c4
1 changed files with 0 additions and 1 deletions

View File

@ -71,7 +71,6 @@ ts3clientService.on "started", (ts3proc) =>
vlc.onForward = () => ts3query.sendtextmessage 2, 0, "Fast-forwarding..." vlc.onForward = () => ts3query.sendtextmessage 2, 0, "Fast-forwarding..."
vlc.onBackward = () => ts3query.sendtextmessage 2, 0, "Rewinding..." vlc.onBackward = () => ts3query.sendtextmessage 2, 0, "Rewinding..."
vlc.onEncounteredError = () => log.error "VLC has encountered an error! You will need to restart the bot.", arguments vlc.onEncounteredError = () => log.error "VLC has encountered an error! You will need to restart the bot.", arguments
vlc.onEndReached = () => ts3query.sendtextmessage 2, 0, "End of playlist reached."
vlc.onStopped = () => ts3query.sendtextmessage 2, 0, "Stopped." vlc.onStopped = () => ts3query.sendtextmessage 2, 0, "Stopped."
ts3query.currentScHandlerID = 1 ts3query.currentScHandlerID = 1