Merge branch 'merge' into merge-analytics

This commit is contained in:
ggurdin 2024-09-12 13:56:13 -04:00
commit 2262bf6e04
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -58,7 +58,9 @@ class BotOptionsModel {
//////////////////////////////////////////////////////////////////////////
// General Bot Options
//////////////////////////////////////////////////////////////////////////
languageLevel: json[ModelKey.languageLevel],
languageLevel: json[ModelKey.languageLevel] is int
? json[ModelKey.languageLevel]
: null,
safetyModeration: json[ModelKey.safetyModeration] ?? true,
mode: json[ModelKey.mode] ?? "discussion",