   error: (err) =>
     console.error err
 
-module.exports = Gtalkbot+module.exports = Gtalkbot

    options = 
      jid: process.env.HUBOT_GTALK_USERNAME
      password: process.env.HUBOT_GTALK_PASSWORD
      acceptDomains: process.env.HUBOT_GTALK_WHITELIST_DOMAINS.split(',')
      acceptUsers: process.env.HUBOT_GTALK_WHITELIST_USERS.split(',')
      host: 'talk.google.com'
      port: 5222
      keepaliveInterval: 15000 # ms interval to send query to gtalk server

    # Connect to gtalk servers
    @client = new Xmpp.Client 

      )

    # Check for buddy requests every so often
    @client.send roster_query
    setInterval =>
      @client.send roster_query
    , @options.keepaliveInterval
