Hubot与hipchat适配器无法在ubuntu上启动

时间:2013-08-26 19:55:48

标签: node.js ubuntu bots hubot

我对nodejs不是很精通,但是我正在尝试安装hubot并使用hipchat适配器运行它,但是,我收到以下错误,下面是package.json。

我已经按照本教程http://theprogrammingbutler.com/blog/archives/2011/10/28/hipchat-hubot-and-me/和hubot-hipchat repo中的正式教程https://github.com/hipchat/hubot-hipchat - 我甚至尝试在heroku上设置它无济于事。我宁愿在我的ubuntu 12.04 ec2实例上设置它,但是如果有人有一个肯定的方式来到heroku那就没问题了:)非常感谢任何帮助!

我也设置了以下环境变量。

HUBOT_HIPCHAT_JID=<Username>
HUBOT_HIPCHAT_NAME=<Room nickname>
HUBOT_HIPCHAT_PASSWORD=<Password you created for hubots user>
HUBOT_HIPCHAT_TOKEN=<Token from Group Admin and API>

错误:

Error: Argument error
  at new JID (/home/ubuntu/falcbot/node_modules/hubot-hipchat/node_modules/node-xmpp/lib/xmpp/jid.js:30:15)
  at new Connector (/home/ubuntu/falcbot/node_modules/hubot-hipchat/src/connector.coffee:64:31, <js>:42:13)
  at HipChat.run (/home/ubuntu/falcbot/node_modules/hubot-hipchat/src/hipchat.coffee:48:5, <js>:68:19)
  at Robot.run (/home/ubuntu/falcbot/node_modules/hubot/src/robot.coffee:389:5, <js>:351:27)
  at Object.<anonymous> (/home/ubuntu/falcbot/node_modules/hubot/bin/hubot:124:8, <js>:141:11)
  at Object.<anonymous> (/home/ubuntu/falcbot/node_modules/hubot/bin/hubot:5:1, <js>:144:4)
  at Module._compile (module.js:456:26)

的package.json

{
  "name": "hosted-hubot",
  "version": "2.6.3",
  "author": "GitHub Inc.",
  "keywords": [
    "github",
    "hubot",
    "campfire",
    "bot"
  ],
  "description": "A simple helpful robot for your Company",
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/github/hubot/raw/master/LICENSE"
    }
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/github/hubot.git"
  },
  "dependencies": {
    "hubot": "2.6.3",
    "hubot-scripts": "2.5.3",
    "hubot-hipchat": "2.5.1-4",
    "optparse": "1.0.4"
  },
  "engines": {
    "node": ">= 0.8.x",
    "npm": ">= 1.1.x"
  }
}

1 个答案:

答案 0 :(得分:0)

显然我忘了导出变量。使用-a hipchat

启动hubot时,我现在没有收到任何错误