diff options
author | Grail Finder (aider) <wohilas@gmail.com> | 2025-03-21 19:19:09 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-03-21 19:19:09 +0300 |
commit | cb4a4b8cf7ee92dde37a3967d78f737802286f76 (patch) | |
tree | 43c78726e3f29ae890164ddfede8eb8dd34deafd /bot.go | |
parent | e8f2fe7809b4b63738ad9e11cc589dace072bc0b (diff) |
feat: initialize Cluedo state at program startup when conditions are met
Diffstat (limited to 'bot.go')
-rw-r--r-- | bot.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -494,6 +494,11 @@ func init() { Stream: true, Messages: lastChat, } + // Initialize Cluedo if enabled and matching role + if cfg.EnableCluedo && cfg.AssistantRole == "CluedoPlayer" { + playerOrder = []string{cfg.UserRole, cfg.AssistantRole, cfg.CluedoRole2} + cluedoState = extra.CluedoPrepCards(playerOrder) + } choseChunkParser() httpClient = createClient(time.Second * 15) // go runModelNameTicker(time.Second * 120) |