Giter Site home page Giter Site logo

8go / nostr-commander-rs Goto Github PK

View Code? Open in Web Editor NEW
68.0 2.0 6.0 356 KB

simple but convenient CLI-based Nostr client app for following users and sending DMs

License: GNU General Public License v3.0

Shell 12.03% Python 3.55% Rust 84.42%
chat cli command-line-tool messaging nostr p2p rust-lang subscription nostr-sdk

nostr-commander-rs's Issues

--delete-user wont work

after a --delete-user command I still get

display_name: "Jimmy" name: "James Jones"

when i do --whoami

Ditch config / profile store

Hello cool tool, but It's a bit awkward to use.

My usecase for a CLI would be to integrate it with other tooling, think of the software known as netcat.
It gained popularity and traction as a swiss army knife.

I would like to be able something like this:

nocmd --nsec MY_SHITPOST_NSEC publish < thoughts.md

Basically i would love it if this tool was a bit more stateless and let me switch accounts in a non-verbose way;
I understand if that's not the direction you wish to take but just throwing it out there.

P.S. Bonus points if this tool let's me create bots using a bash-script.

Can't parse credentials written by --create-user

nostr-commander-rs_v0.2.2_x86_64-unknown-linux-musl:

  1. created user as per readme with --create-user
  2. resulting .local/share/nostr-commander-rs/credentials.json looks as described
  3. next run fails:
Incompatible changes between version 0.0.9 and 0.0.10.
Incompatible changes between version 0.0.10 and 0.1.0.
Please delete user and create new user or edit your
credentials file and make it look similar to the example
given in the README.md file.

Error while I try to publish

When I try to publish something this error appear, I cant create my own credentials either

pi@raspberrypi:~/nostr-commander-rs/target/release $ ./nostr-commander-rs --publish "test"
If you know Rust a bit, if you are interested in Nostr,
then please consider making a code contribution.
At the very least give it a star on Github.
Star and make PRs at: https://github.com/8go/nostr-commander-rs

Incompatible changes between version 0.0.9 and 0.0.10.
Incompatible changes between version 0.0.10 and 0.1.0.
Please delete user and create new user or edit your
credentials file and make it look similar to the example
given in the README.md file.
2022-12-19T22:51:46.784918Z ERROR nostr_sdk::relay: RelayEvent::Close error: Ws(Io(Custom { kind: Other, error: "IO driver has terminated" }))

Streaming data with fast updates

I tested a little bit with the streaming data feature and realized that it's not possible to stream a logfile with a lot of updates in a small time frame. Then you see duplicates and some lines are missing.

If updates are coming in an interval of 1 second, then all is fine, like here
i=1; while true; do echo $i; i=$(expr $i + 1); sleep 1; [ $i -eq 10 ] && break; done | nostr-commander-rs --dm npub..... _

But if you sleep only 0.1 seconds then it does not work.
i=1; while true; do echo $i; i=$(expr $i + 1); sleep 0.1; [ $i -eq 10 ] && break; done | nostr-commander-rs --dm npub..... _

having trouble building

this tool is exactly what I want, but I’m having difficulty. my shell says “command not found”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.