ircbot: better looping