I'm trying to use Errbot with HipChat server (not cloud). It looks like Errbot is confused between a room name and its xmpp jid. For example, testing with room named BotTest
that has jid of [email protected]
:
- When I set
CHATROOM_PRESENCE
to the room name and send any message in that room, Errbot crashes with the error"Room '[email protected]' not found"
. - When I set it instead to the room's jid, Errbot creates a new room with the same name as the jid, and a jid of
'[email protected]'
. Then when I send a message in that new room it crashes with the error"Room '[email protected]' not found".
My config.py is below:
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 = ('[email protected]', )
BOT_PREFIX = '\\'
BOT_ALT_PREFIXES = ('Hermes',)
BOT_ALT_PREFIX_SEPARATORS = (':', ',', ';')
BOT_ALT_PREFIX_CASEINSENSITIVE = True
CHATROOM_FN = 'Hermes the Bot'
CHATROOM_PRESENCE = ('[email protected]',)
BOT_IDENTITY = {
'username' : '[email protected].<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"
You can refer below link ,which will help you http://errbot.io/en/latest/user_guide/configuration/hipchat.html