Barstr is a Nostr bot that helps users find Bitcoin-friendly bars in their city using data from BTCmap.org.
- Hashtag & Mention Support: Responds to
#Barstr [City]and@Barstr [City]. - Language Detection: Automatically replies in English or Spanish based on the query.
- Threaded Replies: Uses NIP-10 to ensure replies appear correctly in the coversation.
- Clean Output: Lists up to 10 locations with direct links to BTCmap.
-
Clone the repository:
git clone https://github.com/yourusername/Barstr.git cd Barstr -
Create a Virtual Environment:
python3 -m venv venv source venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment:
- Copy
.env.exampleto.env:cp .env.example .env
- Edit
.envand add your Nostr Private Key (nsecor hex):NOSTR_NSEC=nsec1yourprivatekey...
- Copy
python main.py
# OR
./run.shcheck_replies.py: Use this script to verify if the bot's replies are propagating to relays.