tock / ai.tock.bot.admin.answer / ScriptAnswerConfiguration

# ScriptAnswerConfiguration

`data class ScriptAnswerConfiguration : AnswerConfiguration` (source)

An AnswerConfiguration defined by a Kotlin script.

### Constructors

#### <init> | An AnswerConfiguration defined by a Kotlin script. `ScriptAnswerConfiguration(scriptVersions: List<ScriptAnswerVersionedConfiguration>, current: ScriptAnswerVersionedConfiguration = scriptVersions.maxByOrNull { it.date } ?: error("no script version found"))`

### Properties

#### current | `val current: ScriptAnswerVersionedConfiguration`
#### scriptVersions | `val scriptVersions: List<ScriptAnswerVersionedConfiguration>`