If any smart person out there can help me fix my script to post from my terminal, i've tried many libraries but no avail. #asknostr #programming #python #nostrpy

Reply to this note

Please Login to reply.

Discussion

What errors are you getting?

I think like 6months ago I just wasn't able to connect to primal relay. See maybe it works with relay.damus.io

Yeah, i've tried different relays, but to no avail. The error I keep coming back to is "Error posting to Nostr: __init__() missing 2 required positional arguments: 'policy' and 'message_pool'". Thanks for responding!

God knows... Maybe this library is broken?

I did the other day a basic program but it's in nodejs

https://github.com/devballz/sovereign-bot

"Every other day this bot will say GM to someone you like or GFY if it is weekend." πŸ˜‚

Yeah πŸ˜„

Also I can’t zap you, is your lightning wallet setup?

Yeah man, I'm doing some travelling right now. Will set it up later when back to my base. Thanks for the intention though, appreciated!

I am working on a little python samples repository using nostr-sdk

https://github.com/ev3rst/nostr_sdk_examples