mirror of https://github.com/icedream/ts3bot.git
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
parent
4d25c2b822
commit
f3157857c4
1
app.iced
1
app.iced
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue