better status

This commit is contained in:
stryan 2022-05-01 18:30:17 -04:00
parent 30e8104b8a
commit 8ea71c7944
1 changed files with 3 additions and 1 deletions

View File

@ -104,6 +104,8 @@ puts("logging into discord")
bot.run(true)
puts("starting main loop")
timer = 30
bot.online
bot.listening = ""
loop do
sleep timer
if !mpc.playing?
@ -116,7 +118,7 @@ loop do
puts("tried to update listening status but have empty now playing")
end
else
bot.listening("")
bot.listening = ""
bot.idle
end
end