ConfigManager

class ConfigManager(logger: Logger)(source)

Reads config.yml into LunaticChatConfiguration.

The file is deserialized directly rather than copied key by key, so a default lives only on the data class. The hand-written mapper it replaced repeated every default in a second place, and they had already drifted - checkForUpdates disagreed with both config.yml and the data class, and the whole messageLogging block was documented but never read.

Constructors

Link copied to clipboard
constructor(logger: Logger)

Functions

Link copied to clipboard

Parses contents as config.yml.