mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-15 04:02:54 +00:00
[AB-53] economy related templates
adding custom command module
This commit is contained in:
37
abstracto-modules/custom-command/pom.xml
Normal file
37
abstracto-modules/custom-command/pom.xml
Normal file
@@ -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.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.4.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>custom-command</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>custom-command-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,3 @@
|
||||
{
|
||||
"additionalMessage": "${additionalText?json_string}"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign rolls=rolls?join(", ")>
|
||||
<#assign uniqueNumbers=uniqueNumbers>
|
||||
<#assign bid=bid>
|
||||
<#assign toBank=toBank>
|
||||
<#assign toJackpot=toJackpot>
|
||||
<#assign currentJackpot=currentJackpot>
|
||||
<#assign won=won>
|
||||
<#if won>
|
||||
"description": "<@safe_include "creditGamble_response_win_text.ftl"/>"
|
||||
<#else>
|
||||
"description": "<@safe_include "creditGamble_response_text"/>"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<#assign credits=entry.credits>
|
||||
<#assign rank=entry.rank>
|
||||
<#assign userId=entry.memberDisplay.userId>
|
||||
<#assign memberDisplay><#if entry.member?has_content><@member_user_name member=entry.member/><#else>${userId?c}</#if></#assign>
|
||||
#${rank} - ${credits} credits - ${memberDisplay}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#list entries as entry><#assign entry=entry><@safe_include "creditLeaderboard_rank_entry"/>\n</#list>
|
||||
<#assign entry=ownRank><@safe_include "creditLeaderboard_rank_entry"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#include "creditLeaderboard_no_user_found">"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign credits=entry.credits>
|
||||
<#assign rank=entry.rank>
|
||||
<#assign userId=entry.memberDisplay.userId>
|
||||
<#assign memberDisplay><#if entry.member?has_content><@member_user_name member=entry.member/><#else>${userId?c}</#if></#assign>
|
||||
"description": "<@safe_include "credits_response_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign currentCredits=currentCredits>
|
||||
<#assign rank=leaderboardPosition>
|
||||
<#assign gainedCredits=gainedCredits>
|
||||
"description": "<@safe_include "payday_response_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#list rows as row><#assign row=row>
|
||||
<#if row?index = 1>><#else> </#if><#list row as item><#assign item=item>${item}</#list>
|
||||
</#list>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
<#assign newCredits=newCredits>
|
||||
<#assign bid=bid>
|
||||
<#assign oldCredits=oldCredits>
|
||||
<#assign winnings><#if winnings gt 0>${winnings}<#else>0</#if></#assign>
|
||||
<#assign factor=factor>
|
||||
<#assign rows=rows>
|
||||
<#assign outcomeKey=outComeKey>
|
||||
<#assign board><#include "slots_board_display"/></#assign>
|
||||
"additionalMessage": "~~\n~~<@safe_include "slots_outcome_description"/>"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "transferCredits_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "not_enough_wealth_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
||||
<#include "payday_cooldown_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
||||
<#include "payday_cooldown_exception_text">
|
||||
@@ -33,6 +33,7 @@
|
||||
<module>profanity-filter</module>
|
||||
<module>voice-channel-context</module>
|
||||
<module>anti-raid</module>
|
||||
<module>custom-command</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
37
translations/custom-command/pom.xml
Normal file
37
translations/custom-command/pom.xml
Normal file
@@ -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.abstracto-templates.translations</groupId>
|
||||
<artifactId>translations</artifactId>
|
||||
<version>1.4.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>custom-command</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>custom-command-translations-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
15
translations/custom-command/src/main/assembly/assembly.xml
Normal file
15
translations/custom-command/src/main/assembly/assembly.xml
Normal 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>
|
||||
@@ -0,0 +1 @@
|
||||
Custom command
|
||||
@@ -0,0 +1,5 @@
|
||||
:slot_machine: You bet ${bid}, ${toBank} go to the bank, ${toJackpot} go to the jackpot. :slot_machine:
|
||||
:game_die: You've rolled ${rolls}. :game_die:
|
||||
${uniqueNumbers} unique numbers. Thanks for playing, try again soon. :money_with_wings:
|
||||
The jackpot is now ${currentJackpot}.
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
:slot_machine: You bet ${bid}, ${toBank} go to the bank, ${toJackpot} go to the jackpot. :slot_machine:
|
||||
:game_die: You've rolled ${rolls}. :game_die:
|
||||
${uniqueNumbers} unique numbers. You won!!! :tada::tada:
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
A simple luck based credit game
|
||||
@@ -0,0 +1 @@
|
||||
An implement of https://www.fwwiki.de/index.php/Casino_von_Ferdolien.
|
||||
@@ -0,0 +1 @@
|
||||
No users found.
|
||||
@@ -0,0 +1 @@
|
||||
Shows the leaderboard of the credits in this server
|
||||
@@ -0,0 +1 @@
|
||||
Can be used to show the complete leaderboard of credits in this server.
|
||||
@@ -0,0 +1 @@
|
||||
The page to show
|
||||
@@ -0,0 +1 @@
|
||||
You are #${rank} on this server with ${credits} credits.
|
||||
@@ -0,0 +1 @@
|
||||
Shows your current credits
|
||||
@@ -0,0 +1 @@
|
||||
Shows your current amount of credits
|
||||
@@ -0,0 +1 @@
|
||||
You receive credits on a cooldown with this command
|
||||
@@ -0,0 +1 @@
|
||||
You get to have payday! If you are not on cooldown you will receive credits.
|
||||
@@ -0,0 +1,5 @@
|
||||
Here, take some credits. Enjoy! (+${gainedCredits} credits!)
|
||||
|
||||
You currently have ${currentCredits} credits.
|
||||
|
||||
You are currently #${rank} on the global leaderboard!
|
||||
@@ -0,0 +1 @@
|
||||
Play slots with your current credits.
|
||||
@@ -0,0 +1 @@
|
||||
You cannot bid more than you currently own, but you can win a multiple of what you bid.
|
||||
@@ -0,0 +1 @@
|
||||
The amount you want to bid
|
||||
@@ -0,0 +1 @@
|
||||
4LC! Your bid has been multiplied * 25!
|
||||
@@ -0,0 +1,5 @@
|
||||
${board}
|
||||
<#include "slots_outcome_${outcomeKey}">
|
||||
|
||||
Your bid: ${bid}
|
||||
${oldCredits} - ${bid} (Your bid) + ${winnings} (Winnings) → ${newCredits}!
|
||||
@@ -0,0 +1 @@
|
||||
JACKPOT! 226! Your bid has been multiplied * 50!
|
||||
@@ -0,0 +1 @@
|
||||
Nothing!
|
||||
@@ -0,0 +1 @@
|
||||
Three cherries! Your bid has been multiplied * 20!
|
||||
@@ -0,0 +1 @@
|
||||
Three symbols! Your bid has been multiplied * 10!
|
||||
@@ -0,0 +1 @@
|
||||
Two cherries! Your bid has been multiplied * 3!
|
||||
@@ -0,0 +1 @@
|
||||
2 6! Your bid has been multiplied * 4!
|
||||
@@ -0,0 +1 @@
|
||||
Two consecutive symbols! Your bid has been multiplied * 2!
|
||||
@@ -0,0 +1 @@
|
||||
Transfers credit to another user
|
||||
@@ -0,0 +1 @@
|
||||
Transfers the given amount to the target user.
|
||||
@@ -0,0 +1 @@
|
||||
The amount you want to transfer.
|
||||
@@ -0,0 +1 @@
|
||||
The member the credits should be transfered to
|
||||
@@ -0,0 +1 @@
|
||||
Credits have been transfered.
|
||||
@@ -0,0 +1 @@
|
||||
Economy
|
||||
@@ -0,0 +1 @@
|
||||
The cooldown between each paydays in seconds. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
The cooldown between each slot in seconds. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
You do not have enough credits to do this.
|
||||
@@ -0,0 +1 @@
|
||||
Payday is on cooldown. Please try again in ${retryDuration}
|
||||
@@ -0,0 +1 @@
|
||||
Slots is on cooldown. Please try again in ${retryDuration}
|
||||
@@ -33,6 +33,7 @@
|
||||
<module>profanity-filter</module>
|
||||
<module>voice-channel-context</module>
|
||||
<module>anti-raid</module>
|
||||
<module>custom-command</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user