[AB-167] adding templates for infraction tracking and post target disabling

adding some missing templates
adding post target disabled state to post target output
This commit is contained in:
Sheldan
2021-10-25 00:06:09 +02:00
parent cc584d711c
commit 479c100220
17 changed files with 31 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
"description": "
<#list postTargets as postTarget><#assign postTarget=postTarget/>
<#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign>
<#assign statusIndicator>${postTarget.disabled?string('❌', '✅')}</#assign>
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention?json_string}<#else><@safe_include "posttarget_no_channel"/></#if></#assign>
<@safe_include "posttarget_post_target_text"/>

View File

@@ -0,0 +1,2 @@
<#assign postTargetKey=model.postTargetKey>
<#include "post_target_not_usable_exception_text">

View File

@@ -0,0 +1,11 @@
{
<#include "user_detail">
<#include "full_member_info">
<#include "moderation_action_color">,
<#assign newLevel=newLevel>
<#assign oldLevel=oldLevel>
<#assign newPoints=newPoints>
<#assign oldPoints=oldPoints>
<#assign memberMention=member.memberMention>
"description" :"<@safe_include "infraction_level_notification_description"/>"
}

View File

@@ -0,0 +1,3 @@
Post targets can be disabled, which means they will not be used to send any messages to.
Some features can ignore this, and just function normally, some features might require a post target to be enabled in order to function correctly.
Use the `posttarget` command to view the state of each post target.

View File

@@ -0,0 +1 @@
The key of the post target to disable

View File

@@ -0,0 +1,3 @@
Post targets can be disabled, which means they will not be used to send any messages to.
Some features can ignore this, and just function normally, some features might require a post target to be enabled in order to function correctly.
Use the `posttarget` command to view the state of each post target.

View File

@@ -0,0 +1 @@
The key of the post target to enable

View File

@@ -1 +1 @@
Post target ${postTargetName} points to ${channelMention}.
Post target ${postTargetName} points to ${channelMention}. (${statusIndicator})

View File

@@ -0,0 +1 @@
Post target ${postTargetKey} is not available. It is either not defined or has been disabled.

View File

@@ -0,0 +1 @@
How many infraction levels there should be. Default: ${defaultValue}

View File

@@ -0,0 +1 @@
The channel to log infraction notifications to. Default: ${defaultValue}

View File

@@ -0,0 +1 @@
${memberMention} raised to a new level ${newLevel} on infractions with ${newPoints}.

View File

@@ -0,0 +1 @@
The amount of days after which reactions for starboard are ignored after. Default: ${defaultValue}