Discourse Automation

Is there an automation script that can change Category? I’d like to use it to make a more flexible “Schedule Publishing” system.

I’m imaging that the script would

  • run periodically, and
  • check for topics in a given category which have some marker in a reply (like, marked as solved or reply contains certain text, like “PUBLISH”).
  • If the date of that reply (or “solved” status) is longer ago than a given offset (like, yesterday, or a week),
  • delete all replies
  • move to given category
  • optionally, add configurable tags

A more sophisticated version might look for a date/time in the trigger reply, and publish if it is now after that date/time.

It also might look for the target category in that post (with script config for allowed target categories). And for that matter, tags.

3 Likes