hubot-visitor
A hubot script to alert incoming incoming visitors
Last updated 5 years ago by oehokie .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-visitor 
SYNC missed versions from official npm registry.

hubot-visitor

npm version Build Status

A hubot script to alert slack channel with office visitors.

My office is in a controlled building. The receptionist downstairs will email a special visitor listserv for my company so someone knows to go downstairs to get the visitor. This bot checks an email account that is on that listserv, and whenever it receives an email it notifies a channel in slack. It then waits for a response either from slack with a "got" (as in "got it") or a response by email, and notifies both slack and the listserv that someone got it. Whew.

Installation

In hubot project repo, run:

$ npm install hubot-visitor --save

Then add hubot-visitor to your external-scripts.json:

["hubot-visitor"]

Finally, set the necessary EnvVars:

HUBOT_VISITOR_CHANNEL - Slack channel visitor messages should go
HUBOT_EMAIL_USER - Email Username
HUBOT_EMAIL_PASSWORD - Email Password
HUBOT_EMAIL_HOST - host address (e.g. imap.gmail.com)
HUBOT_EMAIL_SERVICE - email service for nodemailer (e.g. Gmail)
HUBOT_EMAIL_FROM - visitor listserv to check
HUBOT_SLACK_BOTNAME - Botname in slack
HUBOT_EMAIL_NICE_NAME - Nice version of the bots name for email From field
HUBOT_EMAIL_DEBUG - debug email address for testing
HUBOT_EMAIL_DEBUG_LAST - last name (simple filter for debugging)
HUBOT_EMAIL_FROM_DOMAIN - domain of person that sends visitor announcements

Current Tags

  • 0.5.8                                ...           latest (5 years ago)

9 Versions

  • 0.5.8                                ...           5 years ago
  • 0.5.7                                ...           5 years ago
  • 0.5.6                                ...           5 years ago
  • 0.5.5                                ...           5 years ago
  • 0.5.4                                ...           5 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |