moved bot functionality into icechat.js