mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-03 08:19:46 +00:00
[RAB-2] adding code to retrieve legacy quotes
adding migration script for legacy quotes changing docker-compose file to use different container names
This commit is contained in:
@@ -7,7 +7,13 @@
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>dev.sheldan.raustria.bot.templates</groupId>
|
||||
<artifactId>templates</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>r-austria-bot-templates</module>
|
||||
<module>r-austria-bot-translations</module>
|
||||
</modules>
|
||||
|
||||
|
||||
</project>
|
||||
18
templates/r-austria-bot-templates/module-templates/pom.xml
Normal file
18
templates/r-austria-bot-templates/module-templates/pom.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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.raustria.bot.templates</groupId>
|
||||
<artifactId>r-austria-bot-templates</artifactId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>module-templates</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>quotes-templates</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@@ -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>
|
||||
<groupId>dev.sheldan.raustria.bot.templates</groupId>
|
||||
<artifactId>module-templates</artifactId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>quotes-templates</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>quotes-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,26 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"author": {
|
||||
<#assign authorName><@default_template_if_null authorName "quote_response_default_author_name"/></#assign>
|
||||
<#assign channelName><@default_template_if_null sourceChannelName "quote_response_default_channel_name"/></#assign>
|
||||
"name": "<@safe_include "quote_response_header_author_name"/>"
|
||||
<#if authorAvatarURL??>,"avatar": "${authorAvatarURL}"</#if>
|
||||
},
|
||||
<#assign quoteId=quoteId>
|
||||
<#assign quoteDescription=quoteContent>
|
||||
<#assign quoteJumpUrl=quotedMessage.jumpUrl>
|
||||
"description": "<@safe_include "quote_response_description"/>",
|
||||
"footer": {
|
||||
<#assign adderUserName><@default_template_if_null adderName "quote_response_default_adder_name"/></#assign>
|
||||
"text": "<@safe_include "quote_response_footer_adder_name" />"
|
||||
<#if adderAvatarURL??>,"icon": "${adderAvatarURL}"</#if>
|
||||
},
|
||||
<#if imageAttachmentURLs?size = 1>
|
||||
"imageUrl": "${imageAttachmentURLs[0]}",
|
||||
</#if>
|
||||
"timeStamp": "${creationDate}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
<#assign userName=userName>
|
||||
<#assign adderCount=quoteCount>
|
||||
<#assign quotedCount=authorCount>
|
||||
"additionalMessage": "<@safe_include "quoteStats_response_message_text"/>"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "quote_not_found_exception_text">
|
||||
18
templates/r-austria-bot-templates/pom.xml
Normal file
18
templates/r-austria-bot-templates/pom.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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>templates</artifactId>
|
||||
<groupId>dev.sheldan.raustria.bot.templates</groupId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>r-austria-bot-templates</artifactId>
|
||||
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>module-templates</module>
|
||||
</modules>
|
||||
</project>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?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.raustria.bot.templates.translations</groupId>
|
||||
<artifactId>r-austria-bot-translations</artifactId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>module-translations</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>quote-translations</module>
|
||||
</modules>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -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>module-translations</artifactId>
|
||||
<groupId>dev.sheldan.raustria.bot.templates.translations</groupId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>quote-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>quotes-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 @@
|
||||
Shows a random quote
|
||||
@@ -0,0 +1,2 @@
|
||||
Shows a random quote from the server or from the given member.
|
||||
Will display an error if there is no quote found.
|
||||
@@ -0,0 +1 @@
|
||||
The member to show a random quote for
|
||||
@@ -0,0 +1 @@
|
||||
Unknown user
|
||||
@@ -0,0 +1 @@
|
||||
Unknown user
|
||||
@@ -0,0 +1 @@
|
||||
unknown channel
|
||||
@@ -0,0 +1,2 @@
|
||||
[**Quote #${quoteId?c}**](${quoteJumpUrl})
|
||||
${quoteDescription}
|
||||
@@ -0,0 +1 @@
|
||||
Added by ${adderUserName}
|
||||
@@ -0,0 +1 @@
|
||||
${authorName} in ${channelName}
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a quote
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a quote completely from the database. Will ask for confirmation before doing so.
|
||||
@@ -0,0 +1 @@
|
||||
The ID of the quote to delete
|
||||
@@ -0,0 +1 @@
|
||||
Do you really want to delete the quote?
|
||||
@@ -0,0 +1 @@
|
||||
Retrieves a single quote by the ID
|
||||
@@ -0,0 +1 @@
|
||||
This command can be used to retrieve and show a single quote by the ID
|
||||
@@ -0,0 +1 @@
|
||||
The ID of the quote to show
|
||||
@@ -0,0 +1 @@
|
||||
Used to search quotes by the text
|
||||
@@ -0,0 +1,3 @@
|
||||
This command can be used to search through all quotes by a text query.
|
||||
It will return quotes in which the text of the quote contains the given query.
|
||||
If there are more quotes found, the first one is returned.
|
||||
@@ -0,0 +1 @@
|
||||
The text which should be searched for. A query whose text contains this will match.
|
||||
@@ -0,0 +1 @@
|
||||
Shows how often a member has added a quote and has been quoted
|
||||
@@ -0,0 +1 @@
|
||||
Can be used to see how often you or any other member has been quoted or how many quotes were added.
|
||||
@@ -0,0 +1 @@
|
||||
The member to retrieve the quote stats for
|
||||
@@ -0,0 +1 @@
|
||||
:pencil: ${userName} been quoted ${quotedCount} times, and has added ${adderCount} quotes.
|
||||
@@ -0,0 +1 @@
|
||||
Quotes
|
||||
@@ -0,0 +1 @@
|
||||
Containing commands related to quotes
|
||||
@@ -0,0 +1 @@
|
||||
Quote not found
|
||||
20
templates/r-austria-bot-translations/pom.xml
Normal file
20
templates/r-austria-bot-translations/pom.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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>templates</artifactId>
|
||||
<groupId>dev.sheldan.raustria.bot.templates</groupId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>dev.sheldan.raustria.bot.templates.translations</groupId>
|
||||
<artifactId>r-austria-bot-translations</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>module-translations</module>
|
||||
</modules>
|
||||
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user