mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-27 20:39:08 +00:00
added templates required by assignable role places
changed the way how exceptions are templated fixed generic exception template to handle text which might break the syntax
This commit is contained in:
38
abstracto-modules/assignable-roles/pom.xml
Normal file
38
abstracto-modules/assignable-roles/pom.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>assignable-roles</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>assignable-roles-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,15 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>zip</id>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "assignable_roles_config_embed_place_description">
|
||||
<#include "assignable_roles_config_embed_role_header">:
|
||||
<#list roles as role>
|
||||
<#include "assignable_roles_config_embed_emote_description">
|
||||
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "assignable_role_places_overview_description">:
|
||||
<#list places as place>`<#include "assignable_role_places_overview_place">`<#sep>, <#else> <#include "assignable_role_places_overview_no_places"></#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_assigned_user_not_found_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_channel_does_not_exist_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_emote_already_defined_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"additionalMessage": "<#include "assignable_role_place_exists_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_not_found_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_post_not_found_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "assignable_role_place_role_not_usable_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "emote_not_in_assignable_role_place_exception_text">"
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "${place.text}",
|
||||
"fields": [
|
||||
<#list roles as role>
|
||||
{
|
||||
"name": "${role.emote.emoteRepr}",
|
||||
"value": "${role.description}",
|
||||
"inline": "${place.inline?string('true', 'false')}"
|
||||
<#if role.forceNewMessage>
|
||||
,"forceNewMessage": "true"
|
||||
</#if>
|
||||
}<#sep>,
|
||||
<#else>
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user