2.0.4 • Published 5 years ago

munar-plugin-config v2.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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

2.0.4

5 years ago

2.0.3

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

0.0.1

7 years ago