this post was submitted on 01 Sep 2023
5 points (100.0% liked)

Neoliberal

2 readers
4 users here now

Free trade, open borders, taco trucks on every corner. Latest discussion thread: April 2024 **We in m/Neoliberal support:** - Free trade and competitive markets

founded 1 year ago
 

The discussion thread is for casual and off-topic conversation that doesn't merit its own submission.

you are viewing a single comment's thread
view the rest of the comments
[–] Neblib@mastodo.neoliber.al 2 points 1 year ago (3 children)

I was able to get my kbin thread booster bot for the NL mastodon working. Mastodon seems to still have some weirdness with Lemmy posts to Kbin showing up as Lemmy links instead of posts, but the bot is correctly finding the kbin threads and boosting them, which is allowing the posts to be visible to the NL Mastodon users. You can also follow @nl_kbin_booster from other Mastodon accounts too. I'll get the code out here in the next few days but let me know if you have any thoughts or questions.

[–] theinspectorst@kbin.social 2 points 1 year ago

This is great!

[–] CoffeeAddict@kbin.social 2 points 1 year ago* (last edited 1 year ago) (1 children)

Sounds awesome! What is the best way to test this? Assuming I understand correctly, all we would need to do is make a thread and the bot would find it and boost it to Mastodon?

[–] Neblib@mastodo.neoliber.al 2 points 1 year ago* (last edited 1 year ago) (1 children)

@CoffeeAddict that's correct. I had a bug in my scheduler last night which made it miss your Armenia post, but I ran with a wider window to pick up those and it should be working now.
The bot pulls the thread RSS at https://kbin.social/rss?magazine=Neoliberal once an hour and then for each post since the last run:

  • performs a search on the masto instance to get the post federated and get the masto post id
  • checks to see if it's already been boosted by the bot
  • boosts it if not yet boosted.
[–] Neblib@mastodo.neoliber.al 2 points 1 year ago* (last edited 1 year ago) (1 children)

@CoffeeAddict I could make it run more aggressively, but I figure an hour should be fine. I went with RSS as KBin's API is very undocumented. Interestingly, I just found out this morning they also support jsonfeed, which could allow me to remove a rss reading dependency.

[–] CoffeeAddict@kbin.social 2 points 1 year ago

@Neblib
I see it now! I think once an hour should be fine.

And yeah, I believe ernest (Kbins developer) is still working on the API. The last I heard it should be released/updated soon...ish lol.

Right now, I believe only artemis.camp is running kbins API, but even that version is not quite finished. My understanding is that Artemis uses scraping for rest.

Personally, I am excited for the API to be finished and Artemis to support kbin.social, but these things take time to do right.

Still though, this bot is a great step in the right direction for communicating between our communities on #kbin and #mastodon.

[–] Neblib@mastodo.neoliber.al 2 points 1 year ago

I'm going to make the main repo for this project on #Codeberg instead of Github, though I'm working on putting up a mirror over there too. Codeberg seems great for anything FOSS that you don't want to self-host, though you do lose out some Github features. Feel free to take a look at my quick and dirty work: (CW: limited tests, sloppy work - its a hobby project)
https://codeberg.org/neblib/boost-kbin-mag-bot