Name: hubot-as-webot
Owner: Resin.io
Description: null
Created: 2017-01-10 12:03:11.0
Updated: 2017-02-22 08:48:10.0
Pushed: 2017-02-22 15:55:27.0
Homepage: null
Size: 1518
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Webot is a chat bot built on the Hubot framework. It was initially generated by generator-hubot.
This project is a tying together of a yo generated hubot and several published packages for the purpose of taking an individual's presence in one room and replicating this onto a different service.
It was written by Andrew Lucas for resin.io's internal communication streamlining.
git clone https://github.com/resin-io/hubot-as-mebot
then cd
into itgit push resin
& see the unicornSo, you don't trust the repo maintainers and want to follow the principle of least privilege. Good for you. You've got two easy options, either way you're going to have to take over the review and deploy yourself:
git clone https://github.com/resin-io/hubot-as-mebot
SET
commands in a .bat file for thiscd
into the code directorynpm run windows
CALL
in the .bat file for thisHUBOT_ADAPTOR
- Always set to flowdock-listen-to-self
. Sets up which
service to listen to. Runtime processes should force this.HUBOT_FLOWDOCK_API_TOKEN
- Personal API token from
www.flowdock.com/account/tokens.
eg 43542ab245098dade5098f12430bcdfa
.HUBOT_FLOWDOCK_LISTEN_TO_SELF
- Always set to 1
. This tells the adaptor
to listen to it's own account. This modifications made in
flowdock-attend-own-account. Runtime processes should force this.HUBOT_GITTER_API_TOKEN
- Personal Access Token from
developer.gitter.im/apps. eg
342d5aacbe45098ade243578de435fc425ad23ee
.HUBOT_GITTER_ROOM
- Name of the Gitter conversation to replicate to. eg
resin-io/sandbox
. This defaults to resin-io/public
.HUBOT_IGNORE_PREFIX
- Ignores lines based on a prefix. eg :
. This
defaults to £
.HUBOT_MONITOR_ROOM
- ID of the Flowdock flow to replicate from, currently
awkward to access. The utility command 'monitor log' will put this to the
robot logger. eg bed6fa5a-6a31-4a31-9b3b-9184b158c2b8
(r/sandbox). This defaults to
3febc696-3aaf-4a83-9ddd-3a267abf4212
(public/chat).HUBOT_NAME
- Set to your own nickname in Flowdock. Tells Hubot what account
it is using. eg sqweelygig
.HUBOT_ADAPTOR
the flowdock-listen-to-self
adaptor
connects to flowdock using the HUBOT_FLOWDOCK_API_TOKEN
and lists the
channels it is joined to. This pays attention to the account's output
because of HUBOT_LISTEN_TO_SELF
.flowdock-ignore-by-prefix
intercepts all comments and stops the
processing of any beginning with HUBOT_IGNORE_PREFIX
.hubot-room-select
intercepts all comments and stops any that are
not from HUBOT_MONITOR_ROOM
and HUBOT_NAME
(this module seems to
have two purposes because it was coded to have monitor off|me|all, but
our use case configures it into one monitor me).hubot-gitter-echo
hears all comments and echos them to
HUBOT_GITTER_ROOM
using HUBOT_GITTER_API_TOKEN
.hubot-rules
listens for “what are the three rules” and echoes Asimov's
three rules. In the project because it is a good debug script.