aiva icon indicating copy to clipboard operation
aiva copied to clipboard

install for rocketchat hubot adapter

Open Ya-Ri opened this issue 8 years ago • 7 comments

Hi,

maybe you can provide a setup script depending on the chosen adapter...

i try those step without success:

  • replace slack inside bin/.env with rocketchat
  • add these environment variables:

ROCKETCHAT_ROOM='' LISTEN_ON_ALL_PUBLIC=true ROCKETCHAT_USER=bot ROCKETCHAT_PASSWORD=bot

to: bin/.env-aiva

  • in package.json include: hubot-rocketchat instead of hubot-slack

i can't test your new one yet, nevertheless the Jarvis bot works. Let me know if you have successfully integrate it with hubot...

Thanks for your great work, kind regards,

YaRi

Ya-Ri avatar May 25 '16 22:05 Ya-Ri

hmm does it throw any error when u run from npm run debug? Or just quietly fail? Is ROCKETCHAT_AUTH required? Saw it on the page

yep as much as I'd like for it to be seamless to integrate any adapter, it will still takes some extra effort.

I'm currently working on distribution - using Docker, so people only need to run 1 docker command to set everything up - it's also more reliable that way without the interference with the system.

But I'll try to look at that ASAP whenever I have time :) thx for the feedback!

kengz avatar May 26 '16 02:05 kengz

sorry for my late response. The deployment with docker is a good idea, people who had tested jarvis bot will be interested by an npm ready to install also. Maybe you can collaborate with this AI project also: Itsabot (https://github.com/itsabot/abot) i have posted a message on their github page to inform them about AIVA Thanks for you good works. Regards, YaRi

Ya-Ri avatar Jun 14 '16 03:06 Ya-Ri

I'll have to do some digging but I have a working bot with the rocket chat adapter. I may or may not have a docker config too

pjmorr avatar Jun 14 '16 13:06 pjmorr

pjmorr, from my side i didn't success to integrate AIVA with rocket.chat, how did you do that?

Ya-Ri avatar Jun 14 '16 14:06 Ya-Ri

just looking around, I see this is closed... have rocket.chat working for me as well, using standard hubot but not yet with aiva... thats the plan, tho ;)

llwp avatar Jul 17 '16 19:07 llwp

Reopening the issue, would love to take a look at it when I can

kengz avatar Jul 20 '16 02:07 kengz

Hi guys, @kengz @llwp @Ya-Ri, happy to see this here, I've just made a Rocket.Chat connection, here are some tricks and tips.

in config/defaul.json (or whatever file your using) just set the adapter like this:

  "ADAPTERS": {
    "ROCKETCHAT": {
      "ACTIVATE": true,
      "ROCKETCHAT_URL": "https://myinstance.rocket.chat",
      "ROCKETCHAT_ROOM": "GENERAL",
      "RESPOND_TO_DM": true,
      "RESPOND_TO_LIVECHAT": true,
      "ROCKETCHAT_USER": "bot_user",
      "ROCKETCHAT_PASSWORD": "bot_user_password",
      "ROCKETCHAT_AUTH": "password"
    },
...

You see there some of the rocketchat adapter's variables, self-explained right? You put some more of those there, just check the env variables in https://github.com/RocketChat/hubot-rocketchat.

So after saved this file you need to install the adapter. In your bot directory, open the terminal and run:

npm install hubot-rocketchat

This will install RocketChat's Hubot adapter, doing this you can already start your bot and it will be connected to RocketChat!

awesome work here @kengz, we are taking some ideas to the HubotNatural project if you don't mind.

best wishes. Diego Dorgam at Rocket.Chat

diegodorgam avatar Dec 29 '17 03:12 diegodorgam