https://github.com/samsamskies/notacomment
Zaps nostr notes when you comment on them.
https://github.com/samsamskies/notacomment
Last synced: 10 months ago
JSON representation
Zaps nostr notes when you comment on them.
- Host: GitHub
- URL: https://github.com/samsamskies/notacomment
- Owner: SamSamskies
- License: mit
- Created: 2023-07-11T17:47:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T22:44:48.000Z (almost 2 years ago)
- Last Synced: 2025-10-12T14:17:09.267Z (10 months ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notacomment
Zaps nostr notes when you comment on them.

Whenever you post a comment that contains a lightning emoji followed by a number `⚡️21`, the note you are replying to will be zapped for that amount of sats.
Don't forget to turn off the script when you're done.
## Prerequisites
Node.js and npm - I suggest installing the latest Node.js LTS version from https://nodejs.org. That should also install npm.
## Usage With Strike
1. Create an account with Strike if you don't already have one https://strike.me/download/
1. Get a Strike API key with all the payment scopes from https://dashboard.strike.me/
1. Create a .env file and provide NSEC_BUNKER_URI (recommended) or NOSTR_NSEC and STRIKE_API_KEY values (see .env.example)
1. Install the dependencies using npm or yarn or whatever your heart desires
1. Make sure you have money in your Strike account
1. Run the script `npm start`
Keep in mind that Strike pays the invoices from your cash balance. This means the payment rounds up to the nearest cent when paying an invoice, so if you set the zap amount to 1 sat, you'll be sending more money to Strike than the person you are zapping with every zap.
## Usage With LNbits
I recommend making a separate wallet from your main LNbits wallet for usage with notacomment in case you accidentally leak the admin key.
1. Create a .env file and provide NSEC_BUNKER_URI (recommended) or NOSTR_NSEC, LNBITS_ADMIN_KEY, and LNBITS_URL values (see .env.example)
1. Install the dependencies using npm or yarn or whatever your heart desires
1. Make sure you have sats in your LNbits wallet
1. Run the script `npm start`
## Usage With Nostr Wallet Connect
1. Create a NWC connection string using something like https://nwc.getalby.com/
1. Create a .env file and provide NSEC_BUNKER_URI (recommended) or NOSTR_NSEC and NWC_CONNECTION_STRING values (see .env.example)
1. Install the dependencies using npm or yarn or whatever your heart desires
1. Make sure you have sats in your wallet that you generated the NWC connection string with
1. Run the script `npm start`