threefoldtech / web3gw

Proxy for the web3 world
Apache License 2.0
1 stars 1 forks source link

Nostr groups #126

Closed LeeSmet closed 1 year ago

DylanVerstraete commented 1 year ago

@LeeSmet @MarioBassem status? I think we are missing some docs as well

MarioBassem commented 1 year ago

currently, we can create, list, push messages to public channels/chats, still implementing replies. i'll push code by the end of the day with the latest updates. will try to add some docs also today.

MarioBassem commented 1 year ago

Let's also add an example V script which does something like this:

* Connect to (user specified) relay

* List channels on relay

* Lists messages in channel

* Can send a message to the channel

This could be a script which takes a nostr pivate key and relay url. If only these args are given, the script iterates the channels on the relay. If an additional optional arg is given, it can be considered a channel name, and the messages on that channel on that relay are displayed. If a second optional argument is passed, it is considered a message, and the script posts that message in the given channel on the given relay. If that goes well, invoking the script again without the message should now display all the messages including the one just send

the example now is a cli which does 3 commands:

DylanVerstraete commented 1 year ago

@MarioBassem looks good, can you add some docs to the manual so we can merge? :-)

DylanVerstraete commented 1 year ago

@MarioBassem can you rebase on development to make CI work again?