Masterofballs on Nostr: Ok got the dart nostr library figured out I can query all events of kind 1 or what ...
Ok got the dart nostr library figured out
I can query all events of kind 1 or what ever kind and can then print out the tags. Which if you read the community nip is how you would get new post to approve.
So If I have a few hours this weekend I should be able to finish the auto approval bot.
So I think my plan to start is to create a docker-compose.yml file to run the service.
It will have arguments which will be, relays, public keys. We can use the nicer npub format rather than the ugly hex.
So we can put all the public keys of everyone we want to auto approve.
Another option I was thinking was. After a post is approved we can have the service say that person is now a approved poster and the bot can auto approve future post.
What do you guys think?
Anyone can run this bot because it won't need a static ip address or a open port. Nothing like that. It's just gonna query every few minutes or so.
Published at
2023-08-23 13:22:59Event JSON
{
"id": "49027e9e3fe6b26b00266547a82558cfaa1df5d245d68cf1d2297040240d6911",
"pubkey": "7235c54512c28918a4dcb0d47aa48709feef5c4be45e85f5672cdc4a9a32a871",
"created_at": 1692796979,
"kind": 1,
"tags": [
[
"a",
"34550:7235c54512c28918a4dcb0d47aa48709feef5c4be45e85f5672cdc4a9a32a871:explodingheads"
],
[
"subject",
"Ok got the dart nostr library figured out"
]
],
"content": "Ok got the dart nostr library figured out\n\nI can query all events of kind 1 or what ever kind and can then print out the tags. Which if you read the community nip is how you would get new post to approve. \n\nSo If I have a few hours this weekend I should be able to finish the auto approval bot.\n\nSo I think my plan to start is to create a docker-compose.yml file to run the service. \n\nIt will have arguments which will be, relays, public keys. We can use the nicer npub format rather than the ugly hex.\n\nSo we can put all the public keys of everyone we want to auto approve.\n\nAnother option I was thinking was. After a post is approved we can have the service say that person is now a approved poster and the bot can auto approve future post. \n\nWhat do you guys think? \n\nAnyone can run this bot because it won't need a static ip address or a open port. Nothing like that. It's just gonna query every few minutes or so.",
"sig": "77e06548a304db9904cd0033140ede7e96428e024109c77503cee6e4b8bbda70f8332f2dae542b5cf2c884fd9953993429bb0c6c27ead22492960f8d4607b9e3"
}