this post was submitted on 17 Jun 2023
18 points (100.0% liked)

Asklemmy

43945 readers
49 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

I'm a moderator in one of the Lemmy communities and want to set up a bot to post a message every day. I only found this; is that the best way? I'm a developer, so I'm confident I can set it up on a locally hosted server, but then other moderators won't be able to edit it. Is there a better way to do this?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] PriorProject 5 points 1 year ago* (last edited 1 year ago)

Not OP, but I can give an real-world non-trivial example. The [[email protected]](/c/[email protected]) community wishes to set up a series of discussion threads for reach race.

  • The races are irregularly scheduled, but known well in advance. So the ability to schedule a post at an arbitrary time in the future would be desired.
  • There are several session types, practice1, practice2, qualifying, race, and post-race. So the ability to enque multiple posts with different content is desired.
  • Each week, the posts have slightly different content, but it might be templatable across weeks. A templating system for each text attribute on a post may or may not be useful. If this is in place, the scheduling system probably wants to accept either a list of dates or some kind of periodic cron-ish thing (or perhaps a list of schedulables which could each either be a date or a cron-ish thing). Note that in the F1 case, cron isn't very helpful since the sporting calendar is arbitrary and irregular. If we scheduled more than once race in advance using templating, it would probably be using a list of times. It probably becomes necessary to update or overwrite this schedule as well if a race is cancelled or rescheduled.
  • Possibly it would also be useful to be able to enque pinning and unpinning events of existing posts with the same scheduling primitives to give the posts visibility.

Hopefully this gives insight into a real world use-case.