Closed pfrazee closed 9 years ago
:+1:
I'll fix that tomorrow!
@pfraze I'm using this now https://github.com/ralphtheninja/sbot-test-guard/blob/a6d720e050228b37e238a9c4342757a7fa86b077/index.js#L55 and it seems to work. Want to try it out before I publish? (I can switch to ssb-channel later on)
That looks good. Ssb-channel gives you a little help managing the connection, but you can probably add what you need w/o it
@pfraze Aye. I haven't gone through the channel completely yet. Do you have to auth
each time before you call e.g. add
, or is it enough to auth one time and then keep calling on the same connection?
@ralphtheninja you only need to auth once, the connection is a stateful session
$ npm publish
+ sbot-test-guard@3.2.0
Right now messages look like this:
Which means there's an embedded JSON object, not ideal. This is an artifact of the way the messages are posted (using a shell call). It can be improve in one of two ways:
sbot add --
and then pipe the message into stdinrpc.add
as per this example