[AB-30] adding giveaway feature

This commit is contained in:
Sheldan
2023-12-10 14:27:18 +01:00
parent b88046493b
commit b1594b6a20
41 changed files with 221 additions and 0 deletions

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 @@
The giveaway has been cancelled.

View File

@@ -0,0 +1,2 @@
This command is used to cancel a giveaway.
The giveaway will be disabled and the text will be struck through.

View File

@@ -0,0 +1,6 @@
This command can be used to create a giveaway.
A giveaway needs a title and a duration.
Additional optional parameters are: description, benefactor (the user who sponsored the giveaway), a channel different to the post target and an amount of winners.
Per default there is 1 winner and the post target 'giveaways' is used.
A giveaway will then automatically evaluate the winners, but it can be cancelled.
The giveaway can then also be rerolled.

View File

@@ -0,0 +1 @@
The channel the giveaway should be posted in

View File

@@ -0,0 +1 @@
The amount of winners in this giveaway

View File

@@ -0,0 +1,2 @@
This command can be used to re-roll a giveaway. This means that the winners are drawn new.
The previous winner can win again.

View File

@@ -0,0 +1 @@
The channel to create giveaways in. Currently: ${currentTarget}

View File

@@ -0,0 +1,8 @@
<#if cancelled>~~</#if>
<#if description?has_content>${description}</#if>
Giveaway end: ${endDate}
Hosted by: ${host}
<#if benefactor?has_content>Provided by: ${benefactor}</#if>
Entries: ${entries}
Winners: <#if ended>${memberMentions}<#else>${winnerCount}</#if>
<#if cancelled>~~</#if>

View File

@@ -0,0 +1 @@
Giveaway #${id} - ${title}

View File

@@ -0,0 +1 @@
Congratulations ${memberMentions}! You won **${prize}**!! :tada::tada:

View File

@@ -0,0 +1 @@
Already joined the giveaway.

View File

@@ -0,0 +1 @@
You joined the giveaway.