Is it possible for Lemmy to send me a notification whenever somebody submits a new post to a specific community (one that I own)?

I started a project-specific community [email protected] that’s supposed to be a support forum, and I have missed a few posts for many hours because there are no notifications.

I’d be ok too if there was a simple API and I’d have to write a small script, but it’d be nicer if it was built-in

  • Rooki@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    You have to fetch every comment every post every few minutes and save the ids somewhere.

    I suggest you ( if you are a js programmer ) https://github.com/SleeplessOne1917/lemmy-bot , it fetches the newest posts, comments and saves it for persistency in a database, so that you dont get every 30 seconds notified.

    If you want i can set up the bot for you or just guide you how you could do it :) If you want i can even host the bot on my server.

    edit: if you want you can do it over with curl but its difficult because it sends you every post. not unread ones. ( and search sort for “new” for best results )

        • binwiederhier@discuss.ntfy.shOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          That’s what saving the IDs is for right? It’s easy enough to do in a bash script I think. I’ll post it here later, assuming I get it to work.