all repos — honk @ d3a951e7f475a2650f6b9640fdfe31b53ad21600

my fork of honk

raw sendmsg from command line
Ted Unangst tedu@tedunangst.com
Wed, 02 Aug 2023 18:49:28 -0400
commit

d3a951e7f475a2650f6b9640fdfe31b53ad21600

parent

6609566f554df5adb7580b66eb1a70ba98a45ab8

1 files changed, 16 insertions(+), 0 deletions(-)

jump to
M honk.gohonk.go

@@ -433,6 +433,22 @@ fmt.Printf("sorry couldn't find them\n")

return } unfollowyou(user, honkerid, true) + case "sendmsg": + if len(args) < 4 { + fmt.Printf("usage: honk send username filename rcpt\n") + return + } + user, err := butwhatabout(args[1]) + if err != nil { + fmt.Printf("user not found\n") + return + } + data, err := os.ReadFile(args[2]) + if err != nil { + fmt.Printf("can't read file\n") + return + } + deliverate(user.ID, args[3], data) case "cleanup": arg := "30" if len(args) > 1 {