summaryrefslogtreecommitdiff
path: root/doOutput.go
diff options
context:
space:
mode:
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 {