status check
This commit is contained in:
parent
b7f86e5322
commit
cc428a0e2f
6
main.rb
6
main.rb
@ -105,7 +105,11 @@ loop do
|
|||||||
timer = 15
|
timer = 15
|
||||||
sleep timer
|
sleep timer
|
||||||
if mpc.running?
|
if mpc.running?
|
||||||
bot.listening(mpc.nowplaying)
|
current = mpc.nowplaying
|
||||||
|
status = bot.listening(current)
|
||||||
|
if status != current
|
||||||
|
puts("tried to update listening status but got #{status} back")
|
||||||
|
end
|
||||||
else
|
else
|
||||||
bot.idle
|
bot.idle
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user