Skip to content

Commit

Permalink
Give robots a longer short-term memory
Browse files Browse the repository at this point in the history
  • Loading branch information
parsley42 committed Apr 13, 2023
1 parent 9ec5b9a commit 5511f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/brain.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ var cryptKey = struct {
const botEncryptionKey = "bot:encryptionKey"
const encryptedKeyFile = "binary-encrypted-key"

const shortTermDuration = 7 * time.Minute
// People generally expect the robot to remember things longer.
const shortTermDuration = 14 * time.Hour

type memState int

Expand Down

0 comments on commit 5511f70

Please sign in to comment.