pull down to refresh

It looks like @sn is a bot that takes the highest zap rank post every hour and reposts it on X and on Nostr with the: Title Sats zapped so far Comments so far
But I wanna make it so EVERY ~HealthAndFitness post is reposted and stackers can put their X handle at the bottom of their post so our HnF bot can tag their X handle when it posts!
@ek wrote an @hn bot to scrape the top posts from Hacker News and post them on SN! He made the code open source, so feel free to use that code as a starting point, but I want it to be like @sn bot and repost every post ~HealthAndFitness post to Nostr too. And I want stackers to put their Nostr pub key at the bottom so they get a “mention” when the post hits Nostr. https://git.ekzy.is/ekzyis/hnbot
Anyways maybe @ek open-sourced the @sn bot code, but I know he did the @hn code. so I’d love someone to write a bot using his code, or the @sn code, or ChatGPT, or any vibe code to just post EVERY ~HealthAndFitness post to X and Nostr and tag the user in both X and Nostr and have all sats it receives go to a separate NWC wallet I setup for the HnF bot. However ek does it I’m hoping it’s free to run this bot in perpetuity. Code you write should be FOSS on GitHub in the spirit of SN!🤠 (Yes @ek is allowed to accept this bounty)
Of course, posting to X and Nostr is free, so shouldn’t cost us anything once it’s setup. It’s not actually posting to SN.
IT SHOULD BE A DRAW FOR STACKERS TO POST TO ~HealthAndFitness PUT YOUR NOSTR PUBKEY IN YOUR POST SO IT GETS SCRAPED AND U GET MORE SATS!! Clearly our territory gives the biggest payout!
@grayruby @Undisciplined @Aardvark @realBitcoinDog are splitting the cost of this bounty. I hope it’s fun!!
21,000 sats bounty
realBitcoinDog's bounties
reply
151 sats \ 1 reply \ @noknees 9 Jun
gracefully received monsieur :)
reply
reply
Send me a invoice for what I owe you.
reply
Moi aussi.
reply
I’ll add it to your rent due at end of month
reply
Works for me.
reply
Wow 20000 sats!
reply
120 sats \ 3 replies \ @noknees 8 Jun
@realBitcoinDog did you get the admin perms? is everything fine now?
reply
I think so!
reply
So it says it’s delegated to me but how do I switch to it or post to it?
reply
Well I actually have no idea how to access that https://help.x.com/en/managing-your-account/how-to-use-the-delegate-feature The help doc says If you accept, that account will now be shown under admin access or contributor access based on the role accepted.
Check account settings or visiting the hnfbot profile?
reply
Totally would if I knew how! Hopefully someone can pump it up!
reply
@istealkids is working it thank him!!
reply
Will do. Proof of work. Zaps once it’s done to your liking!
reply
I want to know when it’s to YOUR liking!! Post in ~HealthAndFitness! See if the bots perform to your expectations!
reply
Ah good approach!
reply
@realBitcoinDog can you round up the bounty to 25k sats please? 😞 If possible then I would like to send it directly to my lightning wallet holonite@speed.app to prevent the 9% loss
reply
I’m open to it but wanna confirm with my fellow investors they wanna pay 6,250 sats each? @grayruby @Undisciplined @Aardvark
So where is the service running? Virtual private server? Are there ongoing maintenance costs? Is there a user’s guide? How do posters list their X or Nostr handles?
reply
so, uh, can we finalize this now?
reply
What lightning address did u want to be paid to?
@grayruby @Aardvark @Undisciplined did u have anything else?
Is there a way to mark the bounty as “paid” even if I paid outside SN?
reply
I think the saying goes "Don't verify. Trust." or something like that... I don't know, just tell me where I'm supposed to send sats..
reply
What lightning address did u want to be paid to?
Is there a way to mark the bounty as “paid” even if I paid outside SN?
I don't think so. You have 2 ways ig
  1. Pay the bounty here, so I get 70% of 21k which is 14.7k and then pay the rest 10.3k in my wallet
  2. Leave the bounty as it is, pay it directly to the wallet and post a pinned comment "BOUNTY IS PAID TO <username> in <link to that post/comment>" and then post it
reply
And it does posts in “bursts” I think that’s just part of the work flow? Like every hour it’ll just post everything in top so it might post something it already re-posted? That’s probably fine because that’s the point or is it better to avoid that?
X looks like it’ll repost the same post too in back-to-back hours until it hits 17 posts. https://x.com/hnfbot/status/1931414981804691500?s=46&t=AJLfWYMcFR4tAoyfIomXHw
Or looks like it’s all fixed in posted.txt now!
Duplicate Prevention (loadPostedCache/savePostedCache): Tracks posted items in posted.txt to avoid reposting the same content.
reply
It does it in bursts, like per hour as I told you. The bot runs per hour. And it reposts those posts whose stats have changed in that 1 hour. Like if a post has 1 comment an hour ago which changed to 2 comments within the next hour, it will post it otherwise it get blacklisted in posted.txt and will not be posted again. Is that acceptable? Or do I need to change it?
reply
I like that concept. Can it say something like "This post is active ~HealthAndFitness"?
If it's going to post duplicates, maybe we can reduce the posting frequency. I don't think people will follow the account if it feels too spammy.
reply
Reduce posting frequency as like posting every 2 hrs instead of 1 hour?
So where is the service running? Virtual private server?
it's hosted entirely on github and is automated through github actions workflow. you can check it here if the bot is working or not
Are there ongoing maintenance costs?
none for now
Is there a user’s guide? How do posters list their X or Nostr handles?
not a specific user guide but I mentioned how the bot runs in layman's terms here #999588 however the bot mentions users by their username on SN because you know, most people here want to remain anonymous. so i think posting them by their x handles or nostr handles wouldn't be a good thing. moreover, it prioritizes your posts first and then others.
reply
So you’re saying you on purpose don’t have the @ symbol so my corresponding X nym @realBitcoinDog gets tagged?
reply
140 sats \ 1 reply \ @noknees 8 Jun
exactly, i want people to follow that link to reach SN
reply
Cool and I tagged u in rothbard post showing a mishap in “link” SN posts
reply
Good with it
reply
Yes, that's fine with me. Could we sweeten it with some kind of incentive package, though? Like, maybe the developer gets the referrals generated from this tool.
reply
My package is pretty free if anyone wants to use it as an incentive...
reply
That's far too generous
reply
Not according to my wife.... we may need to sweeten the pot a little bit.
reply
@istealkids, @Undisciplined makes a good point. Looks like your bot is just linking posts without a referral link. How about adding /r/Israel kids to the end of every URL? Then u get 10% of referral rewards as a kickback! And incentivize u to help maintain the bot 🙏
reply
50 sats \ 1 reply \ @noknees 8 Jun
nah it's ok. working for bounties is more than enough for me. i'd rather add /r/realBitcoinDog at the end of the links.
Maybe with "Istealkids", though. No need to bring Israel into this.
@realBitcoinDog if I get a week's time, I can do it ig provided the bounty is not lowered
reply
The race is on! Go for it
reply
I need the X handle to which it will be posted and the nostr npub or NWC pubkey please do type in under this comment if possible
reply
Ok I’ll start working on it!!
reply
uh a plan change, you'll need a dev account for the X, so you don't need to create that. I'll do it. You just create a nostr acc like on primal or damus or anywhere, name it (something like HnF bot) Go here follow this paste the nsec1.... here
reply
I made a new Nostr on Damus
If you’re on Nostr too then I can DM you the nsec
reply
sent u a dm on primal but it should appear everywhere
reply
If the bot thing doesn’t work out I am planning to have @supercyclone do some similar things for me for Sports when his school year is over as kind of a mini summer job where he can earn some sats. Maybe he can do a few daily posts for H+F as well.
reply
Hey that’s cool if he gets paid sats to code! Does he like SN or is it like having Dad on Facebook but worse?
reply
He only goes on SN to make his picks but I want him to do some stuff with the territory in the summer. Not necessarily coding but to help out.
reply
reply
121 sats \ 15 replies \ @ek 4 Jun
Just saw the bounty is 21k sats.
Sorry, but I think this is not reasonable for what you’re asking.
Just the code would probably be 50k if not way more and then it might be shitty code that breaks all the time.
And then, if you want them to also run it for you, that will probably also cost you around 10k sats per month.
I pulled these numbers mostly out of my ass, but from what I’m hearing, I thought you’d appreciate a reality check.
But maybe I’m not considering junior devs that would just do it for fun 🤔
reply
I agree, 21k is too low IMO
reply
Maybe I’m biased because k00b pays well for contributions
reply
Really you’re saying we need to trick @k00b into thinking this is a feature request that all territory owners as part of their 50k sats/mo rent get their very own bot that they control to repost content in their territory as they see fit onto Nostr and X!
And then @k00b can set a super high bounty for this to further incentivize territory owners to found a territory cuz they each get to have their own bot, and then u can code it up @WeAreAllSatoshi and get your fat payout!!
reply
Maybe the better course of action is making this a feature for all of the territories, then.
~HealthAndFitness doesn’t have the resources of the mighty k00b.
reply
If I had time I’d do it for free, it sounds like a fun experiment
reply
Yup that’s the rub! Those with the skill don’t have the time!
So need someone w/ time who’s eager, or a high enough bounty haha!
Do u own any territories @WeAreAllSatoshi?
reply
No, I do not own any
reply
@Undisciplined my goal is for whoever fills the bounty to open source the code so any territory could benefit if they wanted to.
I wonder if I could pay myself the bounty by literally just copy pasting the code @ek provided into ChatGPT and saying “now do this for ~HealthAndFitness” but he said it’d be a little harder than that.
His current proposal is for us to raise our bounty to 50k sats, which is the cost of a whole month of our territory. We’ll see if we get takers at current bounty level 21k sats
No this is useful thank you! My fellow ~HealthAndFitness may be interested in raising the bounty if needed!
Sounds like that @sn code is a better starting point than the @hn repo?
And do u think a bot like this is even a good idea?
reply
92 sats \ 1 reply \ @ek 4 Jun
Sounds like that @sn code is a better starting point than the @hn repo?
Yeah, that code actually posts from SN to other platforms. @hn posts from HN to SN which is not what you want.
And do u think a bot like this is even a good idea?
I think it's a good idea to try out
reply
reply
120 sats \ 1 reply \ @ek 4 Jun
The code for @sn is in our repository here.
I already have more than enough code to write and maintain.
reply
Too easy mate thank you!
reply
I’ve also written a SN bot that posts my daily mining earnings. I shared a link to its source code at some point, but I don’t have it handy at the moment.
reply
Can u find it plz? I’ll zap!
The bot will need to run somewhere. That shouldn’t be considered free. Just my 2 sats
reply
Good point
reply
80 sats \ 1 reply \ @ek 4 Jun
Maintenance also costs time and therefore usually money.
reply
reply
Well so I know Netlify will run a GitHub repo code for free.
I’m not opposed to paying for a VPS but I’d like to know of free options first!
reply
I haven’t used Netlify, but it’s important to note there’s a difference between hosting a (static) website from a GH repo, and running a backend service that is polling external resources over and over (because I assume there is no webhook support from SN)
reply
How DARE you assume there is no web hook support from SN! Surely @ek can confirm that there is in fact web hook support!!
But yes you’re right I realize now I had Netlify help me host a static webpage
reply
Almost time to pay rent. Let me know how much rent is owed plus the bounty shared expense and I will send you the sats.
reply
reply