mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-04-14 04:29:08 +00:00
[OPB-40] adding warning threshold notification
restructured template module structure and naming
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations.modules</groupId>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<version>1.5.8-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>faq-translations</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>faq-translations-${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 @@
|
||||
The following commands are available in the given channel: ${commandNames}.
|
||||
@@ -0,0 +1 @@
|
||||
No response found.
|
||||
@@ -0,0 +1 @@
|
||||
No commands available in the given channel.
|
||||
@@ -0,0 +1 @@
|
||||
Shows pre configured responses for different commands in different channels
|
||||
@@ -0,0 +1,3 @@
|
||||
This command can be used to show frequently asked questions in different channels.
|
||||
The response depends on the channels it is executed in, if the command is not available in the channel, the available commands are shown.
|
||||
It is possible to define a channel to get the response for, if the channel is not provided the current channel is used.
|
||||
@@ -0,0 +1 @@
|
||||
The channel to get the FAQ response in
|
||||
@@ -0,0 +1 @@
|
||||
The name of the FAQ command to show
|
||||
@@ -0,0 +1 @@
|
||||
**${commandName}**
|
||||
@@ -0,0 +1 @@
|
||||
No usages
|
||||
@@ -0,0 +1 @@
|
||||
`${channelGroupName}`x${uses}
|
||||
@@ -0,0 +1 @@
|
||||
Shows the amount of times faq commands have been used
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to show the amount of times each FAQ command response was shown to users.
|
||||
The tracking only works for the current FAQ commands, and if the response is deleted the usage is also deleted.
|
||||
@@ -0,0 +1 @@
|
||||
The FAQ command to show the usages for.
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a complete FAQ command
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to delete a complete FAQ command and all of its responses.
|
||||
This is a destructive action to use with care.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the FAQ command to delete
|
||||
@@ -0,0 +1 @@
|
||||
Exports the FAQ configuration into JSON format
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to export the current FAQ configuration into the JSON format required for importing it.
|
||||
There is an optional parameter to only export the FAQ configuration of one specific command. Without this parameter, all commands are exported.
|
||||
@@ -0,0 +1 @@
|
||||
The FAQ command to export the configuration for
|
||||
@@ -0,0 +1 @@
|
||||
Updates the current FAQ configuration for this server
|
||||
@@ -0,0 +1 @@
|
||||
This command is used to update the current FAQ configuration. It uses a file, containing the configuration as a parameter.
|
||||
@@ -0,0 +1 @@
|
||||
The JSON file containing the FAQ configuration as attachment
|
||||
@@ -0,0 +1 @@
|
||||
Shows the currently configured FAQ commands
|
||||
@@ -0,0 +1 @@
|
||||
This command can be used to show the currently configured FAQ commands, the channel groups they have responses in and how many responses there are.
|
||||
@@ -0,0 +1 @@
|
||||
Aliases: ${aliases}
|
||||
@@ -0,0 +1 @@
|
||||
`${channelGroupName}`
|
||||
@@ -0,0 +1 @@
|
||||
Groups:
|
||||
@@ -0,0 +1 @@
|
||||
**${commandName}**
|
||||
@@ -0,0 +1 @@
|
||||
The following commands are configured:
|
||||
@@ -0,0 +1 @@
|
||||
No FAQ commands.
|
||||
@@ -0,0 +1 @@
|
||||
FAQ
|
||||
@@ -0,0 +1 @@
|
||||
FAQ
|
||||
@@ -0,0 +1 @@
|
||||
Module containing FAQ related commands
|
||||
@@ -0,0 +1 @@
|
||||
Global channel group will be created for the purpose of global faq commands.
|
||||
@@ -0,0 +1 @@
|
||||
The commands ${commandKeys} have duplicates names for command or aliases.
|
||||
@@ -0,0 +1 @@
|
||||
The alias ${aliasName} in command ${commandName} is duplicated in command ${originalCommandName}.
|
||||
@@ -0,0 +1 @@
|
||||
Alias ${aliasName} in command ${commandName} shadows another command.
|
||||
@@ -0,0 +1 @@
|
||||
FAQ command ${commandName} was not found.
|
||||
@@ -0,0 +1 @@
|
||||
A position in channel group ${channelGroupName} of FAQ command ${commandName} is duplicated.
|
||||
@@ -0,0 +1,2 @@
|
||||
The configuration for global command ${commandName} is mismatched.
|
||||
It needs to be configured as `"global": true` and the only response needs to be a channel group with name `global`.
|
||||
@@ -0,0 +1 @@
|
||||
The FAQ commands ${commandNames} are configured as global, but they do have more than one response configured.
|
||||
@@ -0,0 +1 @@
|
||||
No FAQ response found.
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations.modules</groupId>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<version>1.5.8-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>news-translations</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>news-translations-${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 @@
|
||||
Posts a news post in the news channel
|
||||
@@ -0,0 +1,4 @@
|
||||
Creates a news with the provided text and any attachments in the `news` post target with the defined template.
|
||||
The news post can be updated via editing the original message containing the command or by the command `updateNews`.
|
||||
This is only possible as long as the news post has not been locked. This is the case a few hours after posting it.
|
||||
The news posts are completely removed from the database a few days after locking them.
|
||||
@@ -0,0 +1 @@
|
||||
The text the news post should contain
|
||||
@@ -0,0 +1,4 @@
|
||||
${messageText}
|
||||
|
||||
${roleMention?json_string}
|
||||
- ${authorMention}
|
||||
@@ -0,0 +1 @@
|
||||
Command used to update an existing news post content
|
||||
@@ -0,0 +1,4 @@
|
||||
This command can be used to update the news post completely.
|
||||
This will effectively render the template new (including author) and replace the contents of the existing news post.
|
||||
Editing the news post does not re-ping any roles.
|
||||
This is only possible as long as the news post was not locked and is still stored in the database.
|
||||
@@ -0,0 +1 @@
|
||||
The ID of the news post message which was created.
|
||||
@@ -0,0 +1 @@
|
||||
The new text the news post should receive.
|
||||
@@ -0,0 +1 @@
|
||||
News
|
||||
@@ -0,0 +1 @@
|
||||
The channel in which the news should be posted in. Currently: ${currentTarget}
|
||||
@@ -0,0 +1 @@
|
||||
Module used to post & update news in the server
|
||||
@@ -0,0 +1 @@
|
||||
News post is locked and cannot be edited.
|
||||
@@ -0,0 +1 @@
|
||||
News post not found.
|
||||
22
templates/translations/module-translations/pom.xml
Normal file
22
templates/translations/module-translations/pom.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations</groupId>
|
||||
<artifactId>translations</artifactId>
|
||||
<version>1.5.8-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations.modules</groupId>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>faq-translations</module>
|
||||
<module>news-translations</module>
|
||||
<module>referral-translations</module>
|
||||
<module>setup-translations</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations.modules</groupId>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<version>1.5.8-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>referral-translations</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>referral-translations-${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 @@
|
||||
Referral
|
||||
@@ -0,0 +1 @@
|
||||
The channel in which the referral codes should be handled in. Currently: ${currentTarget}
|
||||
@@ -0,0 +1 @@
|
||||
Accessories
|
||||
@@ -0,0 +1 @@
|
||||
Smartphone (India)
|
||||
@@ -0,0 +1 @@
|
||||
Smartphone
|
||||
@@ -0,0 +1 @@
|
||||
No referral link found.
|
||||
@@ -0,0 +1 @@
|
||||
Sent by <@full_member_info member=member/>
|
||||
@@ -0,0 +1 @@
|
||||
The last referral post was too recent. See the footer for the next time you can retry
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.translations.modules</groupId>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<version>1.5.8-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>setup-translations</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>setup-translations-${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 @@
|
||||
Setup
|
||||
@@ -0,0 +1 @@
|
||||
The channel which should be scanned for setups. Currently: ${currentTarget}
|
||||
Reference in New Issue
Block a user