status check

This commit is contained in:
stryan 2022-05-01 17:00:08 -04:00
parent b7f86e5322
commit cc428a0e2f
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ loop do
timer = 15
sleep timer
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
bot.idle
end