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
[–] 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.