io.github.freya022.botcommands.api.BCInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api;
import java.time.Instant;
public class BCInfo {
public static final Instant BUILD_TIME;
public static final String VERSION_MAJOR = "3";
public static final String VERSION_MINOR = "0";
public static final String VERSION_REVISION = "0";
public static final String VERSION_CLASSIFIER = "alpha.12";
public static final String GITHUB = "https://github.com/freya022/BotCommands";
/** May be "null", may also be a full commit hash in Jitpack builds */
public static final String BRANCH_NAME = "HEAD";
/** May be "null" */
public static final String COMMIT_HASH = "adc5388344";
public static final String BUILD_JDA_VERSION = "5.0.0-beta.20";
@SuppressWarnings("ConstantConditions")
public static final String VERSION = "%s.%s.%s%s%s".formatted(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION,
VERSION_CLASSIFIER == null ? "" : "-" + VERSION_CLASSIFIER,
COMMIT_HASH.equals("null") ? "" : "_" + COMMIT_HASH);
static {
Instant tmpBuildTime;
try {
tmpBuildTime = Instant.ofEpochMilli(Long.parseLong("1709837316306"));
} catch (NumberFormatException e) { //Can happen on IJ builds, ig
tmpBuildTime = Instant.now();
}
BUILD_TIME = tmpBuildTime;
}
}