From cc428a0e2f9664e6a2b301799ed5b501a4d1a9d6 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 1 May 2022 17:00:08 -0400 Subject: [PATCH] status check --- main.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.rb b/main.rb index 82a5c23..2109750 100644 --- a/main.rb +++ b/main.rb @@ -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