BotConfig
Configuration for a bot
Constructor Summary
Public Constructor | ||
public |
constructor(values: ConfigObject, defaults: ConfigObject) |
Member Summary
Public Members | ||
public |
|
|
public set |
values(values: ConfigObject): * Adds to the current values, overwriting existing ones |
|
public get |
|
Method Summary
Public Methods | ||
public |
loadDefaults(overwrite: boolean) Adds the defaults to the current values |
|
public |
Loads configuration from yargs, adding a bunch of default bot options |
Public Constructors
public constructor(values: ConfigObject, defaults: ConfigObject) source
Params:
Name | Type | Attribute | Description |
values | ConfigObject |
|
The configuration to start with |
defaults | ConfigObject |
|
The defaults to start with |
Public Members
public defaults: ConfigObject source
public set values(values: ConfigObject): * source
Adds to the current values, overwriting existing ones
public get values: ConfigObject source
Public Methods
public loadDefaults(overwrite: boolean) source
Adds the defaults to the current values
Params:
Name | Type | Attribute | Description |
overwrite | boolean |
|
Whether or not the defaults should overwrite existing values |