status check

This commit is contained in:
stryan 2022-05-01 17:00:08 -04:00
parent b7f86e5322
commit cc428a0e2f

View File

@ -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