This commit is contained in:
callebtc
2022-12-26 19:10:55 +01:00
parent b1bb236740
commit 7c6aaa34a9

View File

@@ -409,6 +409,7 @@ async def invoices(ctx):
@click.argument( @click.argument(
"pubkey", "pubkey",
type=str, type=str,
help="Nostr pubkey to send tokens to.",
) )
@click.option( @click.option(
"--verbose", "--verbose",
@@ -456,7 +457,7 @@ async def nsend(ctx, amount: int, pubkey: str, verbose: bool):
async def nreceive(ctx, verbose: bool): async def nreceive(ctx, verbose: bool):
if NOSTR_PRIVATE_KEY is None: if NOSTR_PRIVATE_KEY is None:
print( print(
"Warning! You don't have NOSTR_PRIVATE_KEY set in your .env file. I will create a random private key for this session but I will not remember it. If you lose this key, you will lose access to the DMs you receive on it." "Warning: No nostr private key set! You don't have NOSTR_PRIVATE_KEY set in your .env file. I will create a random private key for this session but I will not remember it."
) )
print("") print("")
client = NostrClient(privatekey_hex=NOSTR_PRIVATE_KEY) client = NostrClient(privatekey_hex=NOSTR_PRIVATE_KEY)