mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 13:21:48 +01:00
NostrAI: Nostr NIP90 Data Vending Machine Framework Example
Projects in this folder contain ready-to-use DVMs. To tun the DVM following the next steps:
To get started:
- Install Python (tested on 3.10/3.11)
Create a new venv in this directory by opening the terminal here, or navigate to this directory and type: "python -m venv venv"
- Place .env file (based on .env_example) in this folder.
- Recommended but optional:
- Create a
LNbits
account on an accessible instance of your choice, enter one account's id and admin key (this account will create other accounts for the dvms) Open the .env file and enter this info toLNBITS_ADMIN_KEY
,LNBITS_WALLET_ID
,LNBITS_HOST
. - If you are running an own instance of
Nostdress
enterNOSTDRESS_DOMAIN
or use the default one.
- Create a
- Activate the venv with
- MacOS/Linux: source ./venv/bin/activate
- Windows: .\venv\Scripts\activate
- Type:
pip install nostr-dvm
- Run
python3 main.py
(or python main.py) - The framework will then automatically create keys, nip89 tags and zapable NIP57
lightning addresses
for your dvms in this file. - Check the .env file if these values look correct.
- Check the
main.py
file. You can update the image/description/name of your DVM before announcing it. - You can then in main.py set
admin_config.REBROADCAST_NIP89
andadmin_config.UPDATE_PROFILE
toTrue
to announce the NIP89 info and update the npubs profile automatically. - After this was successful you can set these back to False until the next time you want to update the NIP89 or profile.
You are now running your own DVM.