0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/automation/lib/discourse_automation/scripts.rb
David Taylor b7a4eadf74
FEATURE: Introduce set_topic_timer automation script (#36660)
Allows different types of topic-timer to be automatically configured on
topics. It uses the 'post_created_edited' trigger, which provides all
sorts of filtering options including category/author/etc.

<img width="804" height="270" alt="SCR-20251212-mzrg"
src="https://github.com/user-attachments/assets/90cca3f8-1516-4adf-830a-c2f43125795d"
/>

---------

Co-authored-by: Régis Hanol <regis@hanol.fr>
2025-12-23 09:46:52 +00:00

28 lines
1.1 KiB
Ruby
Vendored

# frozen_string_literal: true
module DiscourseAutomation
module Scripts
ADD_USER_TO_GROUP_THROUGH_CUSTOM_FIELD = "add_user_to_group_through_custom_field"
APPEND_LAST_CHECKED_BY = "append_last_checked_by"
APPEND_LAST_EDITED_BY = "append_last_edited_by"
AUTO_RESPONDER = "auto_responder"
AUTO_TAG_TOPIC = "auto_tag_topic"
BANNER_TOPIC = "banner_topic"
CLOSE_TOPIC = "close_topic"
EMAIL_ON_FLAGGED_POST = "email_on_flagged_post"
FLAG_POST_ON_WORDS = "flag_post_on_words"
GIFT_EXCHANGE = "gift_exchange"
GROUP_CATEGORY_NOTIFICATION_DEFAULT = "group_category_notification_default"
PIN_TOPIC = "pin_topic"
POST = "post"
REMOVE_UPLOAD_MARKUP_FROM_DELETED_POSTS = "remove_upload_markup_from_deleted_posts"
SEND_PMS = "send_pms"
SET_TOPIC_TIMER = "set_topic_timer"
SUSPEND_USER_BY_EMAIL = "suspend_user_by_email"
TOPIC = "topic"
TOPIC_REQUIRED_WORDS = "topic_required_words"
USER_GLOBAL_NOTICE = "user_global_notice"
USER_GROUP_MEMBERSHIP_THROUGH_BADGE = "user_group_membership_through_badge"
ZAPIER_WEBHOOK = "zapier_webhook"
end
end