munar-plugin-config
Munar plugin for managing plugin options.
Last updated 2 years ago by goto-bus-stop .
ISC · Original npm · Tarball · package.json
$ cnpm install munar-plugin-config 
SYNC missed versions from official npm registry.

munar-plugin-config

Munar plugin for managing plugin options at runtime.

Installation

$ npm install --save munar-plugin-config

Usage

Add the config plugin at the very top of your plugins list, and list other plugins without options:

{
  "plugins": [
    ["config", { "enable": true }],
    "triggers",
    "chat-log",
    "greetings"
  ]
}

munar-plugin-config will initialise them with the correct configuration.

Configuration

Show the current configuration for a plugin using !config get pluginname. Show a single option using !config get pluginname optionname. For example, !config get emotes url.

Set an option using !config set pluginname optionname value. For example, !config set emotes reupload true.

Add an option to a list configuration using !config add pluginname optionname value, eg !config add reddit-feed subreddits pics.

Remove an option from a list configuration using !config remove pluginname optionname value, eg !config remove reddit-feed subreddits pics.

License

ISC

Current Tags

  • 2.0.4                                ...           latest (2 years ago)

5 Versions

  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |