Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

anroots/hubot-simple-phonebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hubot-simple-phonebook

Query Hubot brain for user's contact information.

Downloads Version Licence

This is a simple phonebook script for querying user contact information from the robot brain. You can set this manually with the phonebook set command, have it auto-populated by your adapter (the hubot-fleep adapter supports this) or import via a custom script directly into Redis.

Example interaction

Currently, the following user attributes are understood by the script:

  • Email (user.email)
  • Phone (user.phone)

Installation

In your Hubot project directory, run:

npm install hubot-simple-phonebook --save

Enable the script by adding hubot-simple-phonebook to your external-scripts.json:

[
  "hubot-simple-phonebook"
]

Commands

  • hubot phonebook me <name> - Get contact information for <name>
  • hubot phonebook set (email|phone) of <name> to <value> - Saves the email or phone of the specified user

Example Usage

Get contact information for a user called "David":

Hubot phonebook me David

Save the phone of an user called "Rose Tyler":

Hubot phonebook set phone of Rose Tyler to +4413294574

Contributing

Pull requests and issue reports are welcome.

Licence

The MIT License (MIT). Please see LICENCE file for more information.

About

Query Hubot brain for user's contact information

Resources

License

Stars

Watchers

Forks

Packages

No packages published