我正在尝试将 Errbot 与 HipChat 服务器(不是云)一起使用。看起来 Errbot 在房间名称和它的 xmpp jid 之间感到困惑。例如,使用名为BotTest
jid 的房间进行测试1_bottest@conf.btf.hipchat.com
:
- 当我设置
CHATROOM_PRESENCE
房间名称并在该房间发送任何消息时,Errbot 崩溃并出现错误"Room '1_bottest@conf.btf.hipchat.com' not found"
。 - 当我将其设置为房间的 jid 时,Errbot 会创建一个与 jid 同名的新房间,并且 jid 为
'1_1_bottestconf.btf.hipchat.com@conf.btf.hipchat.com'
. 然后,当我在那个新房间发送消息时,它会因错误而崩溃"Room '1_1_bottestconf.btf.hipchat.com@conf.btf.hipchat.com' not found".
我的 config.py 如下:
import logging
BACKEND = 'XMPP' # defaults to XMPP
BOT_DATA_DIR = r'/auto/home.nas03/eeshel/work/errbot/data'
BOT_EXTRA_PLUGIN_DIR = '/auto/home.nas03/eeshel/work/errbot/plugins'
BOT_LOG_FILE = r'/auto/home.nas03/eeshel/work/errbot/errbot.log'
BOT_LOG_LEVEL = logging.DEBUG
TEXT_COLOR_THEME = 'dark'
BOT_ADMINS = ('1_8@chat.btf.hipchat.com', )
BOT_PREFIX = '\\'
BOT_ALT_PREFIXES = ('Hermes',)
BOT_ALT_PREFIX_SEPARATORS = (':', ',', ';')
BOT_ALT_PREFIX_CASEINSENSITIVE = True
CHATROOM_FN = 'Hermes the Bot'
CHATROOM_PRESENCE = ('1_bottest@conf.btf.hipchat.com',)
BOT_IDENTITY = {
'username' : '1_2@hipchat.eng.<ourdomain>',
'password' : '*****',
'token' : '*****',
'endpoint' : '10.18.0.185',
}
XMPP_KEEPALIVE_INTERVAL = 60
XMPP_USE_IPV6 = False
XMPP_CA_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt"