From 76dca7e97a960df7f7372d040bd66e234b3e409d Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Fri, 24 Apr 2026 18:03:41 +0200 Subject: [PATCH] [AB-xxx] adding templates for thread reminders and auto closing --- .../setThreadPause/setThreadPause_response_embed.ftl | 6 ++++++ .../snoozeThreadReminder_response_embed.ftl | 6 ++++++ .../job/modmail_thread_reminder_notification_embed.ftl | 7 +++++++ .../setThreadPause/help/setThreadPause_description.ftl | 1 + .../setThreadPause/help/setThreadPause_long_help.ftl | 2 ++ .../help/setThreadPause_parameter_paused.ftl | 1 + .../setThreadPause/setThreadPause_response_text.ftl | 1 + .../help/snoozeThreadReminder_description.ftl | 1 + .../help/snoozeThreadReminder_long_help.ftl | 1 + .../help/snoozeThreadReminder_parameter_duration.ftl | 1 + .../snoozeThreadReminder_response_text.ftl | 1 + .../feature_setup_config_modMailAutoCloseDuration.ftl | 1 + .../feature_setup_config_modMailThreadReminderDuration.ftl | 1 + .../default/job/modmail_auto_closing_note_text.ftl | 1 + ...odmail_thread_reminder_notification_auto_close_text.ftl | 1 + .../modmail_thread_reminder_notification_embed_text.ftl | 1 + .../modmail_thread_reminder_notification_paused_text.ftl | 1 + 17 files changed, 34 insertions(+) create mode 100644 abstracto-modules/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_embed.ftl create mode 100644 abstracto-modules/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_embed.ftl create mode 100644 abstracto-modules/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed.ftl create mode 100644 translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_description.ftl create mode 100644 translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_long_help.ftl create mode 100644 translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_parameter_paused.ftl create mode 100644 translations/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_text.ftl create mode 100644 translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_description.ftl create mode 100644 translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_long_help.ftl create mode 100644 translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_parameter_duration.ftl create mode 100644 translations/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_text.ftl create mode 100644 translations/modmail/src/main/resources/default/config/feature_setup_config_modMailAutoCloseDuration.ftl create mode 100644 translations/modmail/src/main/resources/default/config/feature_setup_config_modMailThreadReminderDuration.ftl create mode 100644 translations/modmail/src/main/resources/default/job/modmail_auto_closing_note_text.ftl create mode 100644 translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_auto_close_text.ftl create mode 100644 translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed_text.ftl create mode 100644 translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_paused_text.ftl diff --git a/abstracto-modules/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_embed.ftl b/abstracto-modules/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_embed.ftl new file mode 100644 index 00000000..0ab6ace0 --- /dev/null +++ b/abstracto-modules/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_embed.ftl @@ -0,0 +1,6 @@ +{ + "additionalMessage": "<@safe_include "setThreadPause_response_text"/>", + "messageConfig": { + "ephemeral": true + } +} \ No newline at end of file diff --git a/abstracto-modules/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_embed.ftl b/abstracto-modules/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_embed.ftl new file mode 100644 index 00000000..6fd4e28f --- /dev/null +++ b/abstracto-modules/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_embed.ftl @@ -0,0 +1,6 @@ +{ + "additionalMessage": "<@safe_include "snoozeThreadReminder_response_text"/>", + "messageConfig": { + "ephemeral": true + } +} \ No newline at end of file diff --git a/abstracto-modules/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed.ftl b/abstracto-modules/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed.ftl new file mode 100644 index 00000000..ddf529ef --- /dev/null +++ b/abstracto-modules/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed.ftl @@ -0,0 +1,7 @@ +<#include "format_instant"> +{ + <#assign lastUpdated><@format_instant_relative instant=updated/> + <#assign autoCloseTime><#if autoCloseInstant?has_content><@format_instant_relative instant=autoCloseInstant/> + <#assign threadIsPaused=paused/> + "additionalMessage": "<@safe_include "modmail_thread_reminder_notification_embed_text"/><#if threadIsPaused> <@safe_include "modmail_thread_reminder_notification_paused_text"/><#if autoCloseInstant?has_content> <@safe_include "modmail_thread_reminder_notification_auto_close_text"/>" +} \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_description.ftl b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_description.ftl new file mode 100644 index 00000000..f84c25e1 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_description.ftl @@ -0,0 +1 @@ +Pauses or unpauses threads \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_long_help.ftl b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_long_help.ftl new file mode 100644 index 00000000..b848e947 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_long_help.ftl @@ -0,0 +1,2 @@ +This command can be used to pause or unpause threads. +A paused thread will not be closed, messages are still possible. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_parameter_paused.ftl b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_parameter_paused.ftl new file mode 100644 index 00000000..3bbb39ba --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/setThreadPause/help/setThreadPause_parameter_paused.ftl @@ -0,0 +1 @@ +Whether to pause or unpause the thread \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_text.ftl b/translations/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_text.ftl new file mode 100644 index 00000000..b82d45e0 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/setThreadPause/setThreadPause_response_text.ftl @@ -0,0 +1 @@ +Thread pause state has been updated. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_description.ftl b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_description.ftl new file mode 100644 index 00000000..709620b4 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_description.ftl @@ -0,0 +1 @@ +Snoozes reminders for threads \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_long_help.ftl b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_long_help.ftl new file mode 100644 index 00000000..328d2388 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_long_help.ftl @@ -0,0 +1 @@ +This command snoozes the reminders for a modmail thread for a defined period of time. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_parameter_duration.ftl b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_parameter_duration.ftl new file mode 100644 index 00000000..d6766b69 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/help/snoozeThreadReminder_parameter_duration.ftl @@ -0,0 +1 @@ +Duration to snooze the thread for \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_text.ftl b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_text.ftl new file mode 100644 index 00000000..613af382 --- /dev/null +++ b/translations/modmail/src/main/resources/default/command/snoozeThreadReminder/snoozeThreadReminder_response_text.ftl @@ -0,0 +1 @@ +Thread has been snoozed. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailAutoCloseDuration.ftl b/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailAutoCloseDuration.ftl new file mode 100644 index 00000000..9dc35ad3 --- /dev/null +++ b/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailAutoCloseDuration.ftl @@ -0,0 +1 @@ +Duration format defining the duration after how much a modmail thread should be closed without activity. Default: `${defaultValue}` \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailThreadReminderDuration.ftl b/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailThreadReminderDuration.ftl new file mode 100644 index 00000000..aa00cbd4 --- /dev/null +++ b/translations/modmail/src/main/resources/default/config/feature_setup_config_modMailThreadReminderDuration.ftl @@ -0,0 +1 @@ +Duration format defining the duration after which the moderators should be reminded about the thread. Default: `${defaultValue}` \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/job/modmail_auto_closing_note_text.ftl b/translations/modmail/src/main/resources/default/job/modmail_auto_closing_note_text.ftl new file mode 100644 index 00000000..da1229ca --- /dev/null +++ b/translations/modmail/src/main/resources/default/job/modmail_auto_closing_note_text.ftl @@ -0,0 +1 @@ +Automatically closed \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_auto_close_text.ftl b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_auto_close_text.ftl new file mode 100644 index 00000000..b27f0de2 --- /dev/null +++ b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_auto_close_text.ftl @@ -0,0 +1 @@ +Thread will be closed ${autoCloseTime}, unless there are more messages being sent or the thread is paused. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed_text.ftl b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed_text.ftl new file mode 100644 index 00000000..ab457f80 --- /dev/null +++ b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_embed_text.ftl @@ -0,0 +1 @@ +Thread was last updated ${lastUpdated}. \ No newline at end of file diff --git a/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_paused_text.ftl b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_paused_text.ftl new file mode 100644 index 00000000..53c510c4 --- /dev/null +++ b/translations/modmail/src/main/resources/default/job/modmail_thread_reminder_notification_paused_text.ftl @@ -0,0 +1 @@ +Thread is paused. \ No newline at end of file