-
Notifications
You must be signed in to change notification settings - Fork 1
Adapter: Partychat
Partychat-hooks is a service for hooking into Partychat.
You should report any issues or submit any pull requests to the Partychat-hooks adapter repository.
First you will need to edit the package.json
for your hubot and add the
hubot-partychat-hooks
adapter dependency.
"dependencies": {
"hubot-partychat-hooks": ">= 0.0.1",
"hubot": ">= 2.0.0",
...
}
Then save the file, and commit the changes to your hubot's git repository.
You will also need to change the process type in the Procfile
from app
to web
as Heroku requires this for a HTTP server to listen for requests.
If deploying to Heroku you will need to edit the Procfile
and change the
-a campfire
option to -a partychat-hooks
. Or if you're deploying locally
you will need to use -a partychat-hooks
when running your hubot.
The Partychat-Hooks adapter requires only the following environment variables.
HUBOT_POST_ENDPOINT
Log into Partychat-Hooks and create a hook for your chat room. Create a new Post Hook and enter the following as the body.
{{get_argument("body")}}
Make a note of the HTTP endpoint, you will need this for hubot.
Create a new Receive Hook and enter *
as the command sequence, and the
address including port that hubot will run on as the HTTP endpoint.
% heroku config:add HUBOT_POST_ENDPOINT="..."
% export HUBOT_POST_ENDPOINT="..."
Coming soon!