code: function Bot(options) {
      events.EventEmitter.call(this);
      this.once('connect', function() { }); // listener bug in Node 0.4.2
      this.setMaxListeners(0);
  
      this.jabber = null;
      this.keepalive = null;
      this.name = null;
      this.plugins = {};
      this.iq_count = 1; // current IQ id to use
  
      // add a JID resource if none was provided
      var jid = new xmpp.JID(options.jid);
      if (!jid.resource) {
        jid.resource = 'wobot';
      }
  
      options = options || {};
      this.jid = jid.toString();
      this.password = options.password;
      this.debug = options.debug;
      this.host = options.host;
      this.caps_ver = options.caps_ver || 'wobot:'+getWobotVersion();
  
      // Multi-User-Conference (rooms) service host. Use when directing stanzas
      // to the MUC service.
      this.mucHost = this.host ? "conf." + this.host : "conf.hipchat.com";
  
      var self = this;
      this.on('error', function(error) {
        self.disconnect();
      });
    }
docs: This is the `Bot` constructor.  `options` object:  - `jid`: Bot's Jabber ID - `password`: Bot's HipChat password - `debug`: Set to `true` to show network debug in console - `host`: Force host to make XMPP connection to. Will look up DNS SRV record on JID's host otherwise. - `caps_ver`: Name and version of bot. Override if Wobot is being used to power another bot framework (e.g. Hubot).