Skip to content

Commit c55e7cd

Browse files
committed
also pseudo unpause if a stream was played and the bot auto muted himself before
1 parent 37a678d commit c55e7cd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

plugins/control.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,15 @@ def state_handling_if_alone()
106106
end
107107
end
108108
end
109-
# mute myself and save that I've done it myself
109+
# Mute myself and save that I've done it myself
110110
selfmute true
111111
else
112-
# only unmute me if I've muted myself before
112+
# Only unmute me if I've muted myself before
113113
selfmute false
114-
# start playing only I've stopped myself
114+
# Start playing only I've stopped myself; in case of a stream played unpause does not apply.
115115
if @playing == false
116116
@@bot[:mpd].pause = false
117+
@@bot[:mpd].play #This line is a quick and ugly fix to start a stream that was stopped instead of paused.
117118
@playing = true
118119
end
119120
end

0 commit comments

Comments
 (0)