# 自动化关闭已解决的帖子并发布模板回复

**URL:** https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370
**Category:** Development
**Tags:** solved, automation
**Created:** [2024年三月28日 18:37 UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370 "2024-03-28T18:37:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年四月4日 09:25 UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370/2 "2024-04-04T09:25:17Z")

</div>

可以为自动化创建一个自定义脚本。这里有一些信息，尽管它并不特别详尽：

> [@Create custom Automations](https://meta.discourse.org/t/create-custom-automations/275931):
>
> information_source This is a draft, and may need some extra work. Vocabulary trigger: represents the name of the trigger, eg: user\_added\_to\_group triggerable: represents the code logic associated to a trigger, eg: triggers/user\_added\_to\_group\_.rb script: represents the name of the script, eg: send\_pms scriptable: represents the code logic associated to a script, eg: scripts/send\_pms.rb Plugin API add\_automation\_scriptable(name, &block) add\_automation\_triggerable(name, &block) Scriptable AP…

如果你尝试了，请告诉我们进展如何。👍

---

_[View the full topic](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370)._
