better status
This commit is contained in:
parent
30e8104b8a
commit
8ea71c7944
4
main.rb
4
main.rb
@ -104,6 +104,8 @@ puts("logging into discord")
|
|||||||
bot.run(true)
|
bot.run(true)
|
||||||
puts("starting main loop")
|
puts("starting main loop")
|
||||||
timer = 30
|
timer = 30
|
||||||
|
bot.online
|
||||||
|
bot.listening = ""
|
||||||
loop do
|
loop do
|
||||||
sleep timer
|
sleep timer
|
||||||
if !mpc.playing?
|
if !mpc.playing?
|
||||||
@ -116,7 +118,7 @@ loop do
|
|||||||
puts("tried to update listening status but have empty now playing")
|
puts("tried to update listening status but have empty now playing")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
bot.listening("")
|
bot.listening = ""
|
||||||
bot.idle
|
bot.idle
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user