feat: initialize Cluedo state at program startup when conditions are met

This commit is contained in:
Grail Finder (aider)
2025-03-21 19:19:09 +03:00
parent e8f2fe7809
commit cb4a4b8cf7

5
bot.go
View File

@@ -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)