summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-03 11:00:12 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-03 11:00:12 +0300
commit65b4f01177a38497b0ecb82b09f9dcded55c5acb (patch)
tree15799f4b7d704b349285ad80dca41f939715f03b /bot.go
parente3be45b023686e9f03b70481ac26054a720d38f3 (diff)
Doc: char context doc
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot.go b/bot.go
index 9a991d6..b836824 100644
--- a/bot.go
+++ b/bot.go
@@ -1251,15 +1251,18 @@ func triggerPrivateMessageResponses(msg models.RoleMsg) {
}
// Check each character in the KnownTo list
for _, recipient := range msg.KnownTo {
- // Skip if this is the user character or the sender of the message
- if recipient == cfg.UserRole || recipient == userCharacter || recipient == msg.Role || recipient == cfg.ToolRole {
+ if recipient == msg.Role || recipient == cfg.ToolRole {
+ // weird cases, skip
continue
}
+ // Skip if this is the user character or the sender of the message
+ if recipient == cfg.UserRole || recipient == userCharacter {
+ return // user in known_to => users turn
+ }
// Trigger the recipient character to respond by simulating a prompt
// that indicates it's their turn
triggerMsg := recipient + ":\n"
// Call chatRound with the trigger message to make the recipient respond
- // chatRound(triggerMsg, recipient, tv, false, false)
crr := &models.ChatRoundReq{
UserMsg: triggerMsg,
Role: recipient,