1.2.0 • Published 8 years ago

hubot-reboot v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hubot-reboot

Hubot command to reboot (really just kill the running process)

Installation

In your hubot project, run:

npm install hubot-reboot --save

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

[
  "hubot-reboot"
]

Dependencies

Unless you want everyone to be able to restart hubot, also install hubot-auth.

You should also be running hubot with something that automatically restarts the process if it dies...otherwise this command just kills hubot

Configuration

  • HUBOT_AUTH_ADMIN - A comma separate list of user IDs
  • HUBOT_REBOOT_COMMAND - set this to replace the default reboot commands
  • HUBOT_REBOOT_MESSAGE - change the default message hubot posts as a reply to being rebooted

To populate the HUBOT_AUTH_ADMIN list, use https://api.slack.com/methods/users.list/test to get the actual ids...not the usernames or email addresses

Sample Interaction

Default

user1>> hubot reboot
hubot>> rebooting...brb

Customized

user1>> bender: you are drunk!
bender>> Hasta la vista, meatbags!
1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago