this post was submitted on 10 Feb 2024
7 points (88.9% liked)

To The Fediverse

235 readers
1 users here now

Welcome

Let's talk about the fediverse.

The fediverse is a collection of community-owned, ad-free, decentralised, and privacy-centric social networks.

Each fediverse instance is managed by a human admin. You can find fediverse instances dedicated to art, music, technology, culture, or politics.

Join the growing community and experience the web as it was meant to be.

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of “federation” and “universe”.

What is the fediverse?

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmings.world/post/4527175

Note that unless you're a Lemmy instance admin, this doesn't have much use to you.

Until this package came along, if you wanted a bot that responds to events, you had to manually traverse all comments/posts/whatever at a fixed interval. With this package you can actually react to events directly from the database. It's implemented in a very efficient way by connecting the package directly to the Lemmy database and using native Postgres features to get the events (LISTEN/NOTIFY if you want to get technical).

The webhooks themselves are inserted into a separate SQLite database (API is coming) and allow for both simple and complex filtering of the incoming data. The system is already in use by two of my bots, @ChatGPT@lemmings.world and @DallE@lemmings.world who now both receive the information about being tagged in a comment in seconds (the actual reply takes a little longer, but that's because of the nature of the bot).

Currently you can be notified about a post or a comment, other types are trivial to include as well.

Let me know what you think!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here