change package from template to dev.jansel.aglaea
This commit is contained in:
parent
73efc57f32
commit
ad82dbd409
1
.idea/.name
generated
Normal file
1
.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
|||||||
|
aglaea
|
2
.idea/compiler.xml
generated
2
.idea/compiler.xml
generated
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="13">
|
<bytecodeTargetLevel target="17">
|
||||||
<module name="ext-common" target="1.8" />
|
<module name="ext-common" target="1.8" />
|
||||||
<module name="ext-common.main" target="1.8" />
|
<module name="ext-common.main" target="1.8" />
|
||||||
<module name="ext-common.test" target="1.8" />
|
<module name="ext-common.test" target="1.8" />
|
||||||
|
4
.idea/misc.xml
generated
4
.idea/misc.xml
generated
@ -2,10 +2,10 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="FrameworkDetectionExcludesConfiguration">
|
<component name="FrameworkDetectionExcludesConfiguration">
|
||||||
<file type="web" url="file://$PROJECT_DIR$/../ext-common" />
|
|
||||||
<file type="web" url="file://$PROJECT_DIR$" />
|
<file type="web" url="file://$PROJECT_DIR$" />
|
||||||
|
<file type="web" url="file://$PROJECT_DIR$/../ext-common" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" project-jdk-name="temurin-17" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="temurin-17" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# escape=\
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM openjdk:21-jdk-slim
|
||||||
|
|
||||||
|
# Create required directories
|
||||||
|
RUN mkdir -p /bot/plugins
|
||||||
|
RUN mkdir -p /bot/data
|
||||||
|
RUN mkdir -p /dist/out
|
||||||
|
|
||||||
|
# Declare required volumes
|
||||||
|
VOLUME [ "/bot/data" ]
|
||||||
|
VOLUME [ "/bot/plugins" ]
|
||||||
|
|
||||||
|
# Copy the distribution files into the container
|
||||||
|
COPY [ "build/distributions/template-1.0-SNAPSHOT.tar", "/dist" ]
|
||||||
|
|
||||||
|
# Extract the distribution files, and prepare them for use
|
||||||
|
RUN tar -xf /dist/template-1.0-SNAPSHOT.tar -C /dist/out
|
||||||
|
RUN chmod +x /dist/out/template-1.0-SNAPSHOT/bin/template
|
||||||
|
|
||||||
|
# Clean up unnecessary files
|
||||||
|
RUN rm /dist/template-1.0-SNAPSHOT.tar
|
||||||
|
|
||||||
|
# Set the correct working directory
|
||||||
|
WORKDIR /bot
|
||||||
|
|
||||||
|
# Run the distribution start script
|
||||||
|
ENTRYPOINT [ "/dist/out/template-1.0-SNAPSHOT/bin/template" ]
|
@ -13,7 +13,7 @@ plugins {
|
|||||||
alias(libs.plugins.kordex.plugin)
|
alias(libs.plugins.kordex.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "template"
|
group = "dev.jansel.aglaea"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -53,12 +53,12 @@ kordEx {
|
|||||||
// See https://docs.kordex.dev/data-collection.html
|
// See https://docs.kordex.dev/data-collection.html
|
||||||
dataCollection(DataCollection.Standard)
|
dataCollection(DataCollection.Standard)
|
||||||
|
|
||||||
mainClass = "template.AppKt"
|
mainClass = "dev.jansel.aglaea.AppKt"
|
||||||
}
|
}
|
||||||
|
|
||||||
i18n {
|
i18n {
|
||||||
classPackage = "template.i18n"
|
classPackage = "dev.jansel.aglaea.i18n"
|
||||||
translationBundle = "template.strings"
|
translationBundle = "aglaea.strings"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* This Kotlin source file was generated by the Gradle 'init' task.
|
* This Kotlin source file was generated by the Gradle 'init' task.
|
||||||
*/
|
*/
|
||||||
package template
|
package dev.jansel.aglaea
|
||||||
|
|
||||||
|
import dev.jansel.aglaea.extensions.TestExtension
|
||||||
import dev.kord.common.entity.Snowflake
|
import dev.kord.common.entity.Snowflake
|
||||||
import dev.kordex.core.ExtensibleBot
|
import dev.kordex.core.ExtensibleBot
|
||||||
import dev.kordex.core.utils.env
|
import dev.kordex.core.utils.env
|
||||||
import template.extensions.TestExtension
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
val TEST_SERVER_ID = Snowflake(
|
val TEST_SERVER_ID = Snowflake(
|
@ -1,5 +1,7 @@
|
|||||||
package template.extensions
|
package dev.jansel.aglaea.extensions
|
||||||
|
|
||||||
|
import dev.jansel.aglaea.TEST_SERVER_ID
|
||||||
|
import dev.jansel.aglaea.i18n.Translations
|
||||||
import dev.kordex.core.commands.Arguments
|
import dev.kordex.core.commands.Arguments
|
||||||
import dev.kordex.core.commands.converters.impl.coalescingDefaultingString
|
import dev.kordex.core.commands.converters.impl.coalescingDefaultingString
|
||||||
import dev.kordex.core.commands.converters.impl.defaultingString
|
import dev.kordex.core.commands.converters.impl.defaultingString
|
||||||
@ -8,12 +10,9 @@ import dev.kordex.core.components.components
|
|||||||
import dev.kordex.core.components.publicButton
|
import dev.kordex.core.components.publicButton
|
||||||
import dev.kordex.core.extensions.Extension
|
import dev.kordex.core.extensions.Extension
|
||||||
import dev.kordex.core.extensions.chatCommand
|
import dev.kordex.core.extensions.chatCommand
|
||||||
import dev.kordex.core.extensions.event
|
|
||||||
import dev.kordex.core.extensions.publicSlashCommand
|
import dev.kordex.core.extensions.publicSlashCommand
|
||||||
import dev.kordex.core.i18n.withContext
|
import dev.kordex.core.i18n.withContext
|
||||||
import dev.kordex.core.utils.respond
|
import dev.kordex.core.utils.respond
|
||||||
import template.TEST_SERVER_ID
|
|
||||||
import template.i18n.Translations
|
|
||||||
|
|
||||||
class TestExtension : Extension() {
|
class TestExtension : Extension() {
|
||||||
override val name = "test"
|
override val name = "test"
|
@ -1,5 +1,4 @@
|
|||||||
import ch.qos.logback.core.joran.spi.ConsoleTarget
|
import ch.qos.logback.core.joran.spi.ConsoleTarget
|
||||||
import ch.qos.logback.core.ConsoleAppender
|
|
||||||
|
|
||||||
def environment = System.getenv("ENVIRONMENT") ?: "production"
|
def environment = System.getenv("ENVIRONMENT") ?: "production"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user