DEPRECATED: The hubot-bearychat package ownship has been transfered back to BearyChat company per their request, and I also removed myself from the package maintiners list as their requirement. The new package will be developed and maintained by BearyChat company. Code here is deprecated and not related to new adapter. The repo will not updated any longer. Please use offical adapter in the future.
hubot-bearychat
is an BearyChat adapter for Hubot
Install using npm.
$ npm install hubot-bearychat --save
And start hubot with adapter bearychat
$ bin/hubot -a bearychat
Due to lack of built-in support from BearyChat, so this adapter simulate the full conversation capability with a pair of Incoming
and Outgoing
Robots.
- Add a Incoming Robot(Purple one) to your BearyChat
- Copy the
Hook Address
url in theRobot Settings
, it looks likehttps://hook.bearychat.com/<xxxx>/incoming/<xxxxxxx>
- Set the url to environment variable
BEARY_CHAT_INCOMING
- Add a Outgoing Robot(Black one) to your BearyChat
- Set the
trigger word
to your robot's name or robot's alias (Be careful this is case-sensitive) - Set
https://<your robot host>/bearychat/outgoing
to thePOST Request Address
in yourRobot Settings
**Hint: ** Adapter by default register the web hook url at /bearychat/outgoing
, but this can be override with BEARY_CHAT_OUTGOING
environment variable.
Once you set it up, and have your robot deployed.
If everything goes right, you will see Robot posts <your robot name> is online.
message to your chatroom.
And if you says <robot name> adapter
, it will responds bearychat
.
**PITFALL: ** It robot doesn't responds, check your Outgoing Robot's trigger word
, it must be aligned to your you robot's name or alias. Or Your robot cannot parse it properly. And if you are using English, you need to aware the trigger word is case-sensitive.
MIT