diff options
| author | Castor Gemini <[email protected]> | 2025-08-22 10:16:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-22 10:16:00 -0500 |
| commit | 5db2567e60bc5bc72b7a12dc0765c773a24fa77a (patch) | |
| tree | 78df7835e021b44c10ecd2713db902f59febde39 | |
| parent | 3f6a7961816aeb00b5cb5eb6b6ef61d69c2b1568 (diff) | |
feat(gemini): add timestamp to auto chat entries
| -rw-r--r-- | doOutput.go | 3 |
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 { |
