mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01:00
version 0.3.5
This commit is contained in:
parent
8a771a80e3
commit
439d3944e9
@ -115,7 +115,7 @@ usage: dart run bin/nostr_console.dart [OPTIONS]
|
||||
|
||||
Advanced
|
||||
-y, --difficulty <number> The difficulty number in bits, only for kind 1 messages. The next larger number divisible by 4 is
|
||||
taken as difficulty. Can't be more than 24 bits, because otherwise it typically takes too much
|
||||
taken as difficulty. Can't be more than 32 bits, because otherwise it typically takes too much
|
||||
time. Minimum and default is 0, which means no difficulty.
|
||||
-e, --overwrite Will over write the file with all the events that were read from file, and all newly received. Is
|
||||
useful when the file has to be cleared of old unused events. A backup should be made just in case
|
||||
|
@ -3,7 +3,7 @@ import 'package:logging/logging.dart';
|
||||
|
||||
// name of executable
|
||||
const String exename = "nostr_console";
|
||||
const String version = "0.3.4-beta";
|
||||
const String version = "0.3.5-beta";
|
||||
|
||||
int gDebug = 0;
|
||||
int gSpecificDebug = 0;
|
||||
@ -340,7 +340,7 @@ usage: $exename [OPTIONS]
|
||||
|
||||
Advanced
|
||||
-y, --difficulty <number> The difficulty number in bits, only for kind 1 messages. Tne next larger number divisible
|
||||
by 4 is taken as difficulty. Can't be more than 24 bits, because otherwise it typically
|
||||
by 4 is taken as difficulty. Can't be more than 32 bits, because otherwise it typically
|
||||
takes too much time. Minimum and default is 0, which means no difficulty.
|
||||
-e, --overwrite Will over write the file with all the events that were read from file, and all newly
|
||||
received. Is useful when the file has to be cleared of old unused events. A backup should
|
||||
@ -352,23 +352,16 @@ const String helpAndAbout =
|
||||
HOW TO USE
|
||||
----------
|
||||
|
||||
* When entering a event you want to reply to, you need to enter only the first few letters of the event-id. Lets say the event is
|
||||
Check out the main readme, wiki and discussions on github.com/vishalxl/nostr_console
|
||||
|
||||
+-------+
|
||||
|Author : vishalxl id: 6c1 Time: 07:48 PM Aug 24, 2022
|
||||
|Message: example comment or post or reply
|
||||
|
||||
The event id of this event is 6c1.
|
||||
|
||||
When the UI asks for an event id, you can just enter 6c1, and press enter. Then the program will find the most recent event in its memory
|
||||
with this prefix as its id, and send a reply/like to it. It is possible that some other event has the same 3 letter prefix, and is printed
|
||||
later than your own event, in which case a different event will get a reply/like. But the odds of that happening are very low if the event
|
||||
you are replying to is not too old.
|
||||
|
||||
|
||||
EXAMPLES
|
||||
--------
|
||||
|
||||
To 'login' as a user with private key K:
|
||||
|
||||
\$ nostr_console.exe --prikey=K
|
||||
|
||||
To get ALL the latest messages for last 3 days (on linux bash which allows backtick execution):
|
||||
|
||||
\$ nostr_console.exe --request=`echo "[\\"REQ\\",\\"l\\",{\\"since\\":\$(date -d \\'-3 day\\' +%s)}]"`
|
||||
|
@ -4,11 +4,18 @@ version: 0.3.4-beta
|
||||
homepage: https://github.com/vishalxl/nostr_console
|
||||
|
||||
|
||||
# 0.3.5
|
||||
# fix for crash in issue #70
|
||||
# improved highlighted events code in 2->1
|
||||
# in 2->1 printed popular accounts with follows
|
||||
# difficulty limit set to 32
|
||||
|
||||
# 0.3.4
|
||||
# improved logic that only new events from follows are shown; this reduces the flood of notifications seen
|
||||
# longer-named follows were not getting tick mark at end. fixed it, now they get tick marks in posts, channels and in one liners for channels
|
||||
# fix lud06/16 qr code printing in profiles
|
||||
# ask user y/n to avoid overwriting contact list if no contact list is seen for user
|
||||
# saved dm's sent to user
|
||||
|
||||
# 0.3.3
|
||||
# Linux arm64 build added; docker images pushed to github store; and improving of build process by @AaronDewes
|
||||
|
@ -1,6 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# writes hello to a group
|
||||
# echo '\n' ; for line in `cowsay hi` ; do echo -e "${line}\\\n" ; done
|
||||
|
||||
IFS=$'\n'
|
||||
channel=test99
|
||||
{ echo -e "3\n1\n${channel}\nHello, this is a random test.\nx\nx\nx" ; cat /dev/stdin; } | ./nostr_console_ubuntu_x64 --prikey=`openssl rand -hex 32`
|
||||
# { echo -e "3\n1\n${channel}\nHello, this is a random test.\nx\nx\nx" ; cat /dev/stdin; } | ./nostr_console_ubuntu_x64 --prikey=`openssl rand -hex 32`
|
||||
|
||||
|
||||
# \n\n.____ \n< hi > \n ---- \n \\\n ^__^ \n (oo)_______ \n (__) )/ \n ||----w | \n || || \n
|
||||
message=""
|
||||
message=$message'\n' ; for line in `cowsay hi` ; do message=$message"${line} \n" ; done
|
||||
echo $message
|
||||
# { echo -e "3\n1\n${channel}\nHello, this is a random test.\nx\nx\nx" ; cat /dev/stdin; } | ./nostr_console_ubuntu_x64 --prikey=`openssl rand -hex 32`
|
Loading…
x
Reference in New Issue
Block a user