summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder (aider) <wohilas@gmail.com>2025-03-21 19:19:09 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-03-21 19:19:09 +0300
commitcb4a4b8cf7ee92dde37a3967d78f737802286f76 (patch)
tree43c78726e3f29ae890164ddfede8eb8dd34deafd
parente8f2fe7809b4b63738ad9e11cc589dace072bc0b (diff)
feat: initialize Cluedo state at program startup when conditions are met
-rw-r--r--bot.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bot.go b/bot.go
index 931e70d..8aff41d 100644
--- a/bot.go
+++ b/bot.go
@@ -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)