diff --git a/README.md b/README.md index b4fa104..84b3a6e 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,34 @@ Combining [nostr](https://nostr.net) with [standard template construct](https:// - Add links to sources in replies - Package in a simply deployable way -## Demo -![image](./screenshot1.png) ## How to run -tbd +### Manually +``` +git clone https://github.com/aljazceru/sciencestr +cd sciencestr + +# install dependencies +pip install requirements-api.txt +pip install requirements-bot.txt + +# configure cybrex to use openai +cybrex - write-config -l openai --force +export OPENAI_API_KEY="" +docker run -d --name ipfs_host -v ./ipfs/staging/:/export -v .ipfs/data:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:latest +docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant +python science-bot.py +python api.py + +``` +### Docker-compose +(to be fixed) +``` +git clone https://github.com/aljazceru/sciencestr +cd sciencestr +docker-compose up +``` + +## Demo +![image](./screenshot2.png) +![image](./screenshot3.png) diff --git a/science-bot.py b/science-bot.py index 430c6ba..72d5d4b 100644 --- a/science-bot.py +++ b/science-bot.py @@ -17,12 +17,9 @@ client = Client(keys) client.add_relay("wss://relay.damus.io") client.add_relay("wss://nostr.mom") client.add_relay("wss://nostr.oxtr.dev") -client.add_relay("wss://purplepag.es") client.add_relay("wss://a.nos.lol") client.add_relay("wss://nostr-01.bolt.observer") client.add_relay("wss://e.nos.lol") -client.add_relay("wss://nostr-pub.semisol.dev") -client.add_relay("wss://relay.snort.social") client.connect() filter = Filter().pubkey(pk).kind(4).since(Timestamp.now()) diff --git a/screenshot2.jpg b/screenshot2.jpg new file mode 100644 index 0000000..da3707e Binary files /dev/null and b/screenshot2.jpg differ diff --git a/screenshot3.jpg b/screenshot3.jpg new file mode 100644 index 0000000..a5652cb Binary files /dev/null and b/screenshot3.jpg differ