summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-03 11:46:03 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-03 11:46:03 +0300
commit0e5d37666f92bc75f12f118fc77a7e4af4a5924b (patch)
tree967b9de608288a3cfbd40aaf284b6bd7b640a4b9 /bot.go
parent093103bdd7cd02e10f2339e7beeb71375fb16256 (diff)
Enha: id for card map
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot.go b/bot.go
index 56a5318..75444e4 100644
--- a/bot.go
+++ b/bot.go
@@ -1382,8 +1382,8 @@ func applyCharCard(cc *models.CharCard, loadHistory bool) {
}
func charToStart(agentName string, keepSysP bool) bool {
- cc, ok := sysMap[agentName]
- if !ok {
+ cc := GetCardByRole(agentName)
+ if cc == nil {
return false
}
applyCharCard(cc, keepSysP)