xmppjs / hubot-xmpp

XMPP adapter for Hubot
181 stars 101 forks source link

no reponse from hubot #74

Closed mmessmore closed 10 years ago

mmessmore commented 10 years ago

So I created a stand-alone hubot. It works fine on the cli. It logs into my openfire server, and enters the specified chatroom successfully. But I get nothing back from it if I message it directly or put a command in the chatroom.

I'm using node v0.10.32, hubot v2.8.2, and hubot-xmpp v0.1.12.

I've tried the simple install described by the readme file, and the setup described in http://www.lordofthejars.com/2012/10/installing-and-running-hubot-terminator.html. I even tried doing the stuff with TLS, just in case, but really that's all working fine since it starttls-es before it auths.

I have run with HUBOT_LOG_LEVEL="debug", and the bot sees all the messages. Just nothing happens.

Any ideas? I'm happy to provide any other detail.

mmessmore commented 10 years ago

And of course, right after I file the issue I figure it out...

For posterity: This appears to be an issue where I had a double-install of hubot-xmpp.

My node installation is in /opt/virgil. virgil is the name of my hubot. So the directory for it was /opt/virgil/virgil. I had previously run npm install hubot-xmpp in /opt/virgil. So I started over by doing

cd /opt/virgil  # my home directory
npm remove hubot-xmpp
rm -r virgil    # remove previous bot
hubot -c virgil
cd virgil
vi package.json #add hubot-xmpp to dependencies
npm install
bin/hubot -a xmpp