[AB-xxx] adding template for configuration setup step

This commit is contained in:
Sheldan
2024-02-12 22:56:45 +01:00
parent 9fe1a8ec80
commit 3d01a6992a
27 changed files with 155 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
<module>twitch</module> <module>twitch</module>
<module>giveaway</module> <module>giveaway</module>
<module>image-generation</module> <module>image-generation</module>
<module>sticky-roles</module>
</modules> </modules>
</project> </project>

View File

@@ -0,0 +1,39 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.33-SNAPSHOT</version>
</parent>
<artifactId>sticky-roles</artifactId>
<packaging>pom</packaging>
<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>sticky-roles-templates-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -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>

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "configureStickyRole_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,10 @@
{
"embeds": [
{
<#macro stickyRoleDisplay role>
${role.roleDisplay.roleMention}: ${role.sticky?string('✅', '❌')}
</#macro>
"description": "<#list roles as role><@stickyRoleDisplay role=role/></#list>"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "toggleStickiness_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "toggleStickinessManagement_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -37,6 +37,7 @@
<module>twitch</module> <module>twitch</module>
<module>giveaway</module> <module>giveaway</module>
<module>image-generation</module> <module>image-generation</module>
<module>sticky-roles</module>
</modules> </modules>
</project> </project>

View File

@@ -0,0 +1,39 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.4.33-SNAPSHOT</version>
</parent>
<artifactId>sticky-roles</artifactId>
<packaging>pom</packaging>
<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>sticky-roles-translations-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -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>

View File

@@ -0,0 +1 @@
This command can be used to create the role in the configuration, and also to change whether the role should be maintained when members leave and re-join.

View File

@@ -0,0 +1 @@
Shows the current sticky role configuration

View File

@@ -0,0 +1 @@
Shows the current sticky role configuration and whether a role is considered sticky

View File

@@ -0,0 +1 @@
Change if you want to keep the roles when leaving

View File

@@ -0,0 +1 @@
This command can be used to configure whether your roles should be maintained if you are leaving and re-joining.

View File

@@ -0,0 +1 @@
Change whether another member should have sticky roles

View File

@@ -0,0 +1 @@
This command can be used to configure if another member should maintain their roles if they leave and rejoin.