hubot-leave
Tell Hubot to add or remove a room from HUBOT_HIPCHAT_ROOMS_BLACKLIST
Last updated 5 years ago by atomicframeworks .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-leave 
SYNC missed versions from official npm registry.

hubot-leave

A hubot script to leave a room and not return until asked to.

See src/leave.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-leave --save

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

[
  "hubot-leave"
]

Configuration

Heroku Credentials

Set environment variables HEROKU_EMAIL and HEROKU_PASSWORD so the bot can maintain the HUBOT_HIPCHAT_ROOMS_BLACKLIST environment variable which controls the rooms not to join on reboot.

Sample Interaction

user1>> hubot leave
hubot>> It's alright user1, I understand...
hubot left the room 
user1>> hubot stay
hubot>> Of course! However, I may have to leave for just a moment...
hubot left the room 
hubot joined the room 

Notes

In order to have Hubot remove the room from the blacklist you will have to first invite hubot to the room. Once Hubot is in the room you can tell it to stay which will remove the room the blacklist allowing Hubot to auto join on reboot.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |