@ -21,7 +21,9 @@ This package requires the keybase binary installed on your system, and works on
@@ -21,7 +21,9 @@ This package requires the keybase binary installed on your system, and works on
#### Running:
```
-debug
enables command debugging.
enables command debugging to stdout
-feedback-convid string
sets the keybase chat1.ConvIDStr to send feedback to.
-log-convid string
sets the keybase chat1.ConvIDStr to log debugging to keybase chat.
```
@ -45,6 +47,7 @@ Required by keybase: (Must set all of these)
@@ -45,6 +47,7 @@ Required by keybase: (Must set all of these)
Required by this package: (Set the values you feel like, if you don't set them they won't be used)
if_,err:=b.k.SendMessageByConvID(fcID,"Feedback from @%s:\n```%s```",sender,message);err!=nil{
b.k.ReplyByConvID(convid,mesgID,"I'm sorry, I was unable to send your feedback because my benevolent overlords have not set a destination for feedback. :sad:")
log.Printf("Unable to send feedback: %s",err)
}else{
b.k.ReplyByConvID(convid,mesgID,"Thanks! Your feedback has been sent to my human overlords!")
b.debug("feedback sent")
}
}else{
b.debug("feedback not enabled. set --feedback-convid or BOT_FEEDBACK_CONVID")