update conversation bot setting to write bot options to matrix
This commit is contained in:
parent
2cb33d7ce1
commit
a0ee1965b3
1 changed files with 8 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ class BotOptionsModel {
|
|||
data[ModelKey.conversationTopic] = topic;
|
||||
data[ModelKey.keywords] = keywords;
|
||||
data[ModelKey.safetyModeration] = safetyModeration;
|
||||
data[ModelKey.mode] = mode;
|
||||
data[ModelKey.custom] = custom;
|
||||
return data;
|
||||
} catch (e, s) {
|
||||
debugger(when: kDebugMode);
|
||||
|
|
@ -66,6 +68,12 @@ class BotOptionsModel {
|
|||
case ModelKey.safetyModeration:
|
||||
safetyModeration = value;
|
||||
break;
|
||||
case ModelKey.mode:
|
||||
mode = value;
|
||||
break;
|
||||
case ModelKey.custom:
|
||||
custom = value;
|
||||
break;
|
||||
default:
|
||||
throw Exception('Invalid key for bot options - $key');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue