-
Notifications
You must be signed in to change notification settings - Fork 101
Home
markstory edited this page Nov 23, 2011
·
4 revisions
Hubot-xmpp provides an adapter allowing Hubot to connect to XMPP MUC chatroom. There is a bit of configuration you can use to make hubot do your bidding.
The XMPP adapter requires only 3 (5 if you need specify server and port) environment variables to be set to able to use it.
HUBOT_XMPP_USERNAME
HUBOT_XMPP_PASSWORD
HUBOT_XMPP_ROOMS
Optional:
HUBOT_XMPP_HOST
HUBOT_XMPP_PORT
To set these variables on a Hubot deployed to Heroku you can use the following command from the directory of your deployed Hubot.
heroku config:add HUBOT_XMPP_USERNAME="example@jabber.org" HUBOT_XMPP_PASSWORD="HUBOT_XMPP_PASSWORD" HUBOT_XMPP_ROOMS="room@conf.jabber.org"
Please use jid:passwd
syntax.
HUBOT_XMPP_ROOMS="room@conf.jabber.org:p4sw0rd" # example
Please use jid1,jid2
syntax.
HUBOT_XMPP_ROOMS="room1@conf.jabber.org,room2@conf.jabber.org" # example
HUBOT_XMPP_ROOMS="room1@conf.jabber.org:p4sw0rd,room2@conf.jabber.org:r4nd0m" # example
Warning: password can not contain comma.
To set these variables on a Hubot deployed to a UNIX(-like) operating system you can use the following commands.
export HUBOT_XMPP_USERNAME="example@jabber.org"
export HUBOT_XMPP_PASSWORD="account password"
export HUBOT_XMPP_ROOMS="room@conf.jabber.org"