Functions

_buildMessage(...message)string

Construct a stringified message to log

log(...message)

Log a message to stdout

error(...message)

Log a message to stderr

relativeRequire(relativePath, module, requireIt)object | function

Load a module relative to a local path, or relative to loaded config file

loadPlugins(forumInstance, botConfig)

Load plugins for forum instance

activateConfig(botConfig)Promise

Activate a loaded configuration.

_buildMessage(...message) ⇒ string

Construct a stringified message to log

Kind: global function
Returns: string - stringified message

Param Type Description
...message * Item to stringify and log

log(...message)

Log a message to stdout

Kind: global function

Param Type Description
...message * Message to log to stdout

error(...message)

Log a message to stderr

Kind: global function

Param Type Description
...message * Message to log to stderr

relativeRequire(relativePath, module, requireIt) ⇒ object | function

Load a module relative to a local path, or relative to loaded config file

Kind: global function
Returns: object | function - Loaded module

Param Type Description
relativePath string Local path to use
module string Module to load
requireIt function Function to use to load module

loadPlugins(forumInstance, botConfig)

Load plugins for forum instance

Kind: global function

Param Type Description
forumInstance Provider Provider instance to load plugins into
botConfig object Bot configuration to load plugins with

activateConfig(botConfig) ⇒ Promise

Activate a loaded configuration.

Kind: global function
Returns: Promise - Resolves when configuration is fully activated

Param Type Description
botConfig object Configuration to activate