首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >hubot rocketchat适配器不工作

hubot rocketchat适配器不工作
EN

Stack Overflow用户
提问于 2016-10-05 17:08:56
回答 1查看 1.1K关注 0票数 2

我在一个数字海洋液滴(Ubuntu)上安装了rocket.chat和hubot,现在我正在尝试让hubot说话:

当我跑步时:

hubot -a rocketchat

我得到:

ERROR Cannot load adapter rocketchat - Error: Cannot find module 'hubot-rocketchat'

原因是什么?

这是我的船坞-复合。Here:

代码语言:javascript
复制
db:
  image: mongo
  volumes:
    - ./data/runtime/db:/data/db
    - ./data/dump:/dump
  command: mongod --smallfiles

rocketchat:
  image: rocketchat/rocket.chat:latest
  environment:
    - MONGO_URL=mongodb://db:27017/rocketchat
    - ROOT_URL=https://xxxxxxxxx:3000
    - Accounts_UseDNSDomainCheck=True
  links:
    - db:db
  ports:
    - 3000:3000

hubot:
  image: rocketchat/hubot-rocketchat:v0.1.4 # rocketchat/hubot-    rocketchat
  environment:
    - ROCKETCHAT_URL=http://xxxxxxx:3000
    - ROCKETCHAT_ROOM=
    - LISTEN_ON_ALL_PUBLIC=true
    - ROCKETCHAT_USER=alicja
    - ROCKETCHAT_PASSWORD=xxxxx
    - BOT_NAME=alicja
    - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-    greetings, example.coffee
  links:
    - rocketchat:rocketchat
# this is used to expose the hubot port for notifications on the host     on port 3001, e.g. for hubot-jenkins-notifier
  ports:
    - 3001:8080

编辑:

我使用docker重新安装了hubot和rocket.chat,现在看来bot连接到了火箭聊天(绿灯),但是它没有响应(尝试@botname帮助)。

再说一遍,这是我的码头-复合。here:

http://pastebin.com/rYrRGqfz

提前感谢您的帮助。

编辑2

好的。巨人起来了。我不得不改变:

代码语言:javascript
复制
image: rocketchat/hubot-rocketchat:v0.1.4

至:

代码语言:javascript
复制
image: rocketchat/hubot-rocketchat:latest 

在大型机器人中.yml的一部分

显然,当火箭聊天图像,火箭聊天,image_and,_hubot图像是不同的(杜赫.)

但我如何为大人物服务,从码头开始呢?例如。在哪里(文件夹位置),我应该运行npm安装脚本名来将它添加到hubot吗?.yml文件所在的同一文件夹?

我如何定制脚本?它们在哪里?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-10-06 12:16:01

上面有两个问题:

  • 如何运行巨无霸
代码语言:javascript
复制
- Change your docker-compose.yml, where it says `- ROCKETCHAT_URL=xxx.xxx.xxx.xxx:3000` change it to `- ROCKETCHAT_URL=rocketchat:3000`. You should connect to hubot through the link in the containers.
- Indeed, you should be using `hubot-rocketchat:latest` with Rocket.Chat version above 0.37

  • 如何使用自己的脚本进行自定义
代码语言:javascript
复制
- You have to map a volume from your host to your container. You can do this by adding `volumes:` to your docker-compose.yml. If you had your custom scripts inside a `scripts` folder, in the same directory as docker-compose.yml, you'd add it like this:

卷:-/脚本:/home/hubot/script

我的docker-compose.yml的样本可以在这里找到:http://pastebin.com/KKX0Kuma

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39879968

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档