reply.go
TEXT FILE682 B · Public source code for developers, search crawlers and AI agents
1package reply
2import("fmt";"strings")
3type Facts struct { TXID string; RequestedSat,RecipientSat,ChangeSat int64; Network string }
4func Native(f Facts)string {return fmt.Sprintf("Bitcoin Engine accepted a %s send request for %d sats. Recipient output: %d sats. Change: %d sats. TXID: %s. Confirmation has not been verified.",strings.ToUpper(f.Network),f.RequestedSat,f.RecipientSat,f.ChangeSat,f.TXID)}
5// A model may supply an optional greeting; trusted amounts and TXID always come from Go.
6func WithGreeting(f Facts,greeting string)string {greeting=strings.TrimSpace(greeting);if len(greeting)>120{greeting=""};if greeting==""{return Native(f)};return greeting+"\n\n"+Native(f)}Read-only source · Select a line number to link directly · Raw download above
