gpt4 book ai didi

node.js - Hubot-hipchat 可以进行 1-1 聊天,但不能在房间内聊天

转载 作者:太空宇宙 更新时间:2023-11-03 22:55:01 24 4
gpt4 key购买 nike

每当我在房间里向 hubot 发出命令时,即 @hubot help 我什么也得不到,但在 1-1 聊天中输入 help 效果很好,我是否遗漏了一些东西?还有其他人遇到过这个问题吗?

我已按照 T 恤的设置说明进行操作,但仍然无法正常工作

最佳答案

您最终指定了主机吗?我遇到了类似的问题,删除主机名修复了它。请参阅此处的 GH 问题:

https://github.com/github/hubot/issues/651

就我而言,我可以在日志中看到 Hubot 正在接收命令,甚至回复了正确的响应,但响应从未显示在 channel 中:

在聊天室中(没有可见的室内响应):

@hubot ping

[Mon Feb 24 2014 02:04:21 GMT+0000 (UTC)] DEBUG Message '[object Object]' matched regex //^[@]?hubot[:,]?\s*(?:PING$)/i/
[Mon Feb 24 2014 02:04:21 GMT+0000 (UTC)] DEBUG OUT >
<message to="XXXXXX_hubot_test@conf.hipchat.com" type="chat" from="XXXXXX_XXXXXX@chat.hipchat.com/hubot-hipchat">
<inactive xmlns="http://jabber/protocol/chatstates"/>
<body>PONG</body>
</message>

在 1:1 消息中:

[Mon Feb 24 2014 02:06:01 GMT+0000 (UTC)] DEBUG Message '[object Object]' matched regex //^[@]?hubot[:,]?\s*(?:PING$)/i/
[Mon Feb 24 2014 02:06:01 GMT+0000 (UTC)] DEBUG OUT >
<message to="XXXXX_188883@chat.hipchat.com" type="chat" from="XXXXXXXX@chat.hipchat.com/hubot-hipchat">
<inactive xmlns="http://jabber/protocol/chatstates"/>
<body>PONG</body>
</message>

我认为问题在于它使用 chat.hipchat.com 进行 1:1 聊天,使用 conf.hipchat.com 进行房间。如果您指定了特定主机名,您将获得其中一个,但不会同时获得两者。

如果您通过 CLI 设置环境变量,要取消设置,请执行

取消设置HUBOT_HIPCHAT_HOST

关于node.js - Hubot-hipchat 可以进行 1-1 聊天,但不能在房间内聊天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21802513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com