This method analyzes user-defined Bot Action configuration values and uses them for Bot Action logic if they are valid. If configuration values are missing or invalid, the default values are used.
the default values for the configurable Bot Action
the values retrieved from the user-defined .grdb.json
Custom Config file
Determine if user-configured value for constructiveFeedbackOnlyToggle is set and valid, or if default value should be used
default config value for constructiveFeedbackOnlyToggleDefault
user-configured bot action values
name of bot action
boolean for constructiveFeedbackOnlyToggle in BotActionConfig
Determine if user-configured value for bot action threshold is set and valid, or if default value should be used
user-configured bot action values
name of bot action
name of threshold for bot action
action config default value for threshold
inclusive minimum value for valid threshold
inclusive maximum value for valid threshold
number for threshold value in BotActionConfig
Generated using TypeDoc
This class standardizes Custom Config property syntax for each configurable Bot Action.