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 String
The build type, such asstable
,nightly
, oredge
static String
The build type, with_docker
appended if this is a Docker buildstatic String
The release versionstatic String
The git SHA the build was made fromstatic boolean
Indicates if this is a manual/custom buildstatic boolean
isDocker()
Indicates if this is a Docker buildstatic boolean
Indicates if this is an edge buildstatic boolean
Indicates if this is a nightly buildstatic boolean
Deprecated, for removal: This API element is subject to removal in a future version.This build type is not usedstatic boolean
Indicates 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;
custom
for a manual build
-
getRepoVersion
The git SHA the build was made from- Returns:
- The git SHA;
unknown
if ant is unable to determine this
-
getBuildType
The build type, such asstable
,nightly
, oredge
- Returns:
- The build type
-
getBuildTypeWithDocker
The build type, with_docker
appended if this is a Docker build- Returns:
- The build type
-
isNightlyBuild
public static boolean isNightlyBuild()Indicates if this is a nightly build- Returns:
true
if 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:
true
if a custom build
-
isEdgeBuild
public static boolean isEdgeBuild()Indicates if this is an edge build- Returns:
true
if an edge build
-
isDocker
public static boolean isDocker()Indicates if this is a Docker build- Returns:
true
if 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:
true
if a stress test build
-