summaryrefslogtreecommitdiff
path: root/doOutput.go
diff options
context:
space:
mode:
authorCastor Gemini <[email protected]>2025-08-22 10:16:00 -0500
committerJeff Carr <[email protected]>2025-08-22 10:16:00 -0500
commit5db2567e60bc5bc72b7a12dc0765c773a24fa77a (patch)
tree78df7835e021b44c10ecd2713db902f59febde39 /doOutput.go
parent3f6a7961816aeb00b5cb5eb6b6ef61d69c2b1568 (diff)
feat(gemini): add timestamp to auto chat entries
Diffstat (limited to 'doOutput.go')
-rw-r--r--doOutput.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/doOutput.go b/doOutput.go
index b175999..0e193c2 100644
--- a/doOutput.go
+++ b/doOutput.go
@@ -2,9 +2,11 @@ package main
import (
"os"
+ "time"
"go.wit.com/lib/protobuf/chatpb"
"go.wit.com/log"
+ "google.golang.org/protobuf/types/known/timestamppb"
)
func doOutput(s string) {
@@ -42,6 +44,7 @@ func doOutput(s string) {
newEntry := &chatpb.ChatEntry{
From: chatpb.Who_GEMINI,
Content: s,
+ Ctime: timestamppb.New(time.Now()),
}
autoChat.Entries = append(autoChat.Entries, newEntry)
if err := all.ConfigSave(); err != nil {