Package tv.phantombot
Class RepoVersion
java.lang.Object
tv.phantombot.RepoVersion
Provides the version of the bot
DO NOT EDIT. THIS FILE IS FILLED IN AUTOMATICALLY BY ANT
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe build type, such asstable,nightly, oredgestatic StringThe build type, with_dockerappended if this is a Docker buildstatic StringThe release versionstatic StringThe git SHA the build was made fromstatic booleanIndicates if this is a manual/custom buildstatic booleanisDocker()Indicates if this is a Docker buildstatic booleanIndicates if this is an edge buildstatic booleanIndicates if this is a nightly buildstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.This build type is not usedstatic booleanIndicates if this is a Stress Test build that should not send messages to Twitch Chat/Discord
-
Method Details
-
getPhantomBotVersion
The release version- Returns:
- The release version;
customfor a manual build
-
getRepoVersion
The git SHA the build was made from- Returns:
- The git SHA;
unknownif ant is unable to determine this
-
getBuildType
The build type, such asstable,nightly, oredge- Returns:
- The build type
-
getBuildTypeWithDocker
The build type, with_dockerappended if this is a Docker build- Returns:
- The build type
-
isNightlyBuild
public static boolean isNightlyBuild()Indicates if this is a nightly build- Returns:
trueif a nightly build
-
isPrereleaseBuild
Deprecated, for removal: This API element is subject to removal in a future version.This build type is not used -
isCustomBuild
public static boolean isCustomBuild()Indicates if this is a manual/custom build- Returns:
trueif a custom build
-
isEdgeBuild
public static boolean isEdgeBuild()Indicates if this is an edge build- Returns:
trueif an edge build
-
isDocker
public static boolean isDocker()Indicates if this is a Docker build- Returns:
trueif a Docker build
-
isStressTest
public static boolean isStressTest()Indicates if this is a Stress Test build that should not send messages to Twitch Chat/Discord- Returns:
trueif a stress test build
-