All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.BCInfo Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.23
Show newest version
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.21";
    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 = "61f0562702";
    public static final String BUILD_JDA_VERSION = "5.2.1";

    @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("1733500867340"));
        } catch (NumberFormatException e) { //Can happen on IJ builds, ig
            tmpBuildTime = Instant.now();
        }
        BUILD_TIME = tmpBuildTime;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy