2.0.1 • Published 7 years ago

hubot-command-blacklist v2.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

hubot-command-blacklist

Middleware and commands for blacklisting specific commands in certain rooms or channels

Installation

In hubot project repo, run:

npm install hubot-command-blacklist --save

Then add hubot-command-blacklist to your external-scripts.json:

[
  "hubot-command-blacklist"
]

Configuration

HUBOT_DEFAULT_COMMANDS - comma separated list of command ids that can't be disabled.

Commands

CommandListener IdDescription
hubot enable <commandId>room.enableEnable the command with a given commandId in your

current room. hubot enable all | room.enable | Enable all commands in the current room hubot disable <commandId> | room.disable | Disable the command with a given commandId in your current room. hubot disable all | room.enable | Disable all commands except for this packages command and any commands you've listed as HUBOT_DEFAULT_COMMANDS hubot list commands | room.list-commands | Lists list all the commandIds split into categories: enabled commands and disabled commands hubot toggle respond | room.toggle-response | Toggle whether or not responses will be sent in this room for these commands. (Defaults to false) hubot toggle override | room.toggle-override | Toggles whether or not admin users can override and send commands that are otherwise disabled.

Notes

If you are using hubot-auth, anyone who is admin or anyone with role [room-name]-admin can run these commands. If you aren't using hubot-auth, then anyone can run them.

If your listener doesn't have an id set using listener metadata you won't be able to disable that command.

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

9 years ago

1.0.0

9 years ago