feat: initialize Cluedo state at program startup when conditions are met
This commit is contained in:
5
bot.go
5
bot.go
@@ -494,6 +494,11 @@ func init() {
|
|||||||
Stream: true,
|
Stream: true,
|
||||||
Messages: lastChat,
|
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()
|
choseChunkParser()
|
||||||
httpClient = createClient(time.Second * 15)
|
httpClient = createClient(time.Second * 15)
|
||||||
// go runModelNameTicker(time.Second * 120)
|
// go runModelNameTicker(time.Second * 120)
|
||||||
|
|||||||
Reference in New Issue
Block a user