Hubot Linda
Linda connector for Hubot
Install
% npm i hubot-linda -save
external-script.json
edit
Config
set ENV Variables
Required
% export HUBOT_LINDA_SERVER=http://linda-server.herokuapp.com
% export HUBOT_LINDA_TUPLESPACE=test
Optional (default value is below)
% export HUBOT_LINDA_ROOM=general
% export HUBOT_LINDA_HEADER=:feelsgood: # slack emoticon
% export NODE_ENV=production # mute socket.io status message
on heroku: heroku config:set HUBOT_LINDA_SERVER=http://linda-server.herokuapp.com
System
- Write a Tuple into Linda
{type: "hubot", cmd: "post", value: "hello!!"}
- Hubot detects the Tuple
- send "Hello!!" to chat
type: "hubot" // required cmd: "post" // required value: "hello" // required room: "#general" // optional, you can specify chat room.
for Hubot Script
hubot-linda emits linda:ready
event when ready.
# Description: # read light sensor value with Linda # Commands: # hubot sensor light = roboton 'linda:ready'-> robotrespond /sensor light/ robotlindatuplespace'test'read type: "sensor"name: "light" if err msgsend "linda error" return msgsend "light : "