<commit_before>package scripturebot

import botsecrets "github.com/julwrites/BotSecrets"

// Struct definitions for bot

type UserConfig struct {
	Version       string
	Timezone      string
	Subscriptions string
}

type UserData struct {
	Firstname string
	Lastname  string
	Username  string
	Id        string
	Type      string
	Config    UserConfig
}

type MessageData struct {
	User    UserData
	Command string
	Message string
}

type SessionData struct {
	Secrets botsecrets.SecretsData
	Type    string
	Props   MessageData
}<commit_msg>Flatten UserConfig when storing in datastore<commit_after>package scripturebot

import botsecrets "github.com/julwrites/BotSecrets"

// Struct definitions for bot

type UserConfig struct {
	Version       string
	Timezone      string
	Subscriptions string
}

type UserData struct {
	Firstname string
	Lastname  string
	Username  string
	Id        string
	Type      string
	Config    UserConfig `datastore:",flatten"`
}

type MessageData struct {
	User    UserData
	Command string
	Message string
}

type SessionData struct {
	Secrets botsecrets.SecretsData
	Type    string
	Props   MessageData
}
{'fraction_non_alphanumeric': 0.03880070546737213, 'fraction_numerical': 0.0, 'mean_word_length': 3.5219123505976095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2413550', 'n_tokens_mistral': 341, 'n_tokens_neox': 334, 'n_words': 108}