Eskating cyclist, gamer and enjoyer of anime. Probably an artist. Also I code sometimes, pretty much just to mod titanfall 2 tho.

Introverted, yet I enjoy discussion to a fault.

  • 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle
  • Either of those are only options for someone who runs an instance.

    I agree running things the other way around would be better, but monitoring about a dozen communities, I get away with a call every 5 minutes, and it almost never needs to load a second page. That is not significant afaik.

    How would it miss stuff? You’d always use “new” sort and load pages until you run into content from the last update. Stuff from the last page appearing again because new content moved the content along, shouldn’t stop you from loading another page, and any new content will be caught in the next update.


  • Only way I know to do this, is to just regularly check the comment and post feeds, loading more pages until you get content you’ve already ingested.

    This is how @saucechan@ani.social works. It also responds to mentions using notifications, but mentions in post bodies don’t create notifications, so the work-around was necessary.

    If you didn’t know, there is a comment feed endpoint, which will contain new comments from all posts, without requiring you to check every post for new comments. It’s not used by most clients, but it’s available in the default webUI, and hence the API.

    You can make it a little simpler, by only loading the subscribed feed, and making sure you sub to the relevant communities on the bot account.


  • Hm.

    Making and running fediverse bots is very easy right now. The APIs are well documented and libraries exist for almost every platform and programming language to make things even simpler. All the parts you’d need for every bot anyway, are done and available. You only need to write the code that does what your specific use-case requires.

    I’ve made four now. Lemmytrix, @dailycomic@sh.itjust.works, @saucechan@ani.social, and @mofumatic@sakurajima.moe.

    At the same time, it should have some barrier for entry.

    If you need a piece of software to hold your hand every step of the way, you maybe shouldn’t be responsible for a bot.

    And it’s not really something you can easily make general purpose software for. There is the RED bot for discord, but it is a huge project and still relies on user-created add-ons to do more specific things.