processed events, added delay, after sending kind 1 post

and improved option 6 -> 9 print info
This commit is contained in:
Vishal 2022-11-23 13:42:54 +05:30
parent 5a35516bd4
commit 1065cb3b70
2 changed files with 14 additions and 8 deletions

View File

@ -374,8 +374,13 @@ void printMenu(List<String> menuOptions) {
void printVerifiedAccounts(Store node) {
List<dynamic> listVerified = []; // num follows, pubkey, name, nip05id
print("A list of all NIP05 verified accounts is as follows: ");
print("Username Num Followers pubkey Nip Id");
printUnderlined("NIP 05 Verifid Users");
print("") ;
//print("A list of all NIP05 verified accounts is as follows: \n");
print("Username Num Followers pubkey Nip Id\n");
gKindONames.forEach((key, value) {
String pubkey = key;
if( value.nip05Verified) {
@ -387,13 +392,10 @@ void printVerifiedAccounts(Store node) {
});
listVerified.sort((a, b) => a[0] > b[0]? -1: (a[0] == b[0]? 0: 1));
for(var verifiedEntry in listVerified) {
print("${verifiedEntry[2].padRight(20)} ${verifiedEntry[0]} ${verifiedEntry[1]} ${verifiedEntry[3]}");
}
for( var uni in gKindONames.values) {
print("${verifiedEntry[2].padRight(30)} ${verifiedEntry[0].toString().padRight(4)} ${verifiedEntry[1]} ${verifiedEntry[3]}");
}
print("\nHow to use: To get best results, print the main feed a couple of times right after starting; and then check NIP verified list. This gives application time to do the verification from user's given servers.\n\n");
}
void clearScreen() {
@ -1330,6 +1332,7 @@ Future<void> mainMenuUi(Store node) async {
}
await sendReplyPostLike(node, replyToId, replyKind, content);
await processAnyIncomingEvents(node, false);
break;
case 3:

View File

@ -310,7 +310,10 @@ $gUsage
KNOWN ISSUES
------------
* Does not work on Tor network
* On windows terminal, special characters such as accent ( as used in many languages) can't be sent. Emojis can't be sent either. But they can be sent from Linux/Mac.
* On Windows terminal, there is limitation where only 255 characters can be sent at a time.
See and file bugs here: https://github.com/vishalxl/nostr_console/issues
ABOUT
-----