diff --git a/bin/nostr_console.dart b/bin/nostr_console.dart index 223f536..f3ecd40 100644 --- a/bin/nostr_console.dart +++ b/bin/nostr_console.dart @@ -75,6 +75,14 @@ Future main(List arguments) async { userPublicKey = getPublicKey(userPrivateKey); print("Going to use the provided private key"); } + + // write informative message in case user is using the default private key + if( userPrivateKey == gDefaultPrivateKey) { + print("${gWarningColor}You seem to be using the default private key, which comes bundled with this $exename and is used by all users of this program$gColorEndMarker"); + print("You can also create your own private key and use it with ${gWarningColor}--prikey$gColorEndMarker program argument. "); + print("You can create your own private key from ${gWarningColor}astral.ninja or branle.netlify.app$gColorEndMarker, or other such tools.\n"); + } + if( argResults[relayArg] != null) { defaultServerUrl = argResults[relayArg]; print("Going to use relay: $defaultServerUrl"); diff --git a/lib/event_ds.dart b/lib/event_ds.dart index 99c5a55..75eb12e 100644 --- a/lib/event_ds.dart +++ b/lib/event_ds.dart @@ -113,7 +113,7 @@ extension StringX on String { isEnglish( ) { // since smaller words can be smileys they should not be translated - if( length < 6) + if( length < 10) return true; if( !isLatinAlphabet())