Skip to content

rainbowdashlabs/cjda-util

Repository files navigation

GitHub Workflow Status GitHub Workflow Status Sonatype Nexus (Releases) Sonatype Nexus (Development) Sonatype Nexus (Snapshots)

Gradle:

repositories {
    maven {
        url = uri("https://eldonexus.de/repository/maven-public")
    }
}

dependencies {
    implementation("de.chojo", "cjda-util", "{version}")
}

Maven:

    <repositories>
        <repository>
            <id>EldoNexus</id>
            <url>https://eldonexus.de/repository/maven-public</url>
        </repository>
    </repositories>
    
    <dependencies>
        <dependency>
            <groupId>de.chojo</groupId>
            <artifactId>cjda-util</artifactId>
            <version>{version}</version>
        </dependency>
    </dependencies>

Snapshots are available via: https://eldonexus.de/repository/maven-snapshots/

Configuration

ENV always takes precedence over PROP

Prop: -Dcjda.interactions.cleanguildcommands=true
Env: CJDA_INTERACTIONS_CLEANGUILDCOMMANDS
default false

Clean guild commands on bot start

Prop: -Dcjda.interactions.testmode=true
Env: CJDA_INTERACTIONS_TESTMODE
default false

Set the testmode. When active all global commands will be deployed on guilds and not globally.

Prop: -Dcjda.localisation.error.name=false
Env: CJDA_LOCALISATION_NAME_ERROR
default true

Allows to disable the name error on command localisation.

Prop: bot.config
Env: BOT_CONFIG

Relative path to the configuration file.