Package tv.phantombot

Class RepoVersion

java.lang.Object
tv.phantombot.RepoVersion

public final class RepoVersion extends Object
Provides the version of the bot DO NOT EDIT. THIS FILE IS FILLED IN AUTOMATICALLY BY ANT
  • Method Details

    • getPhantomBotVersion

      public static String getPhantomBotVersion()
      The release version
      Returns:
      The release version; custom for a manual build
    • getRepoVersion

      public static String getRepoVersion()
      The git SHA the build was made from
      Returns:
      The git SHA; unknown if ant is unable to determine this
    • getBuildType

      public static String getBuildType()
      The build type, such as stable, nightly, or edge
      Returns:
      The build type
    • getBuildTypeWithDocker

      public static String 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(since="3.8.0.0", forRemoval=true) public static boolean 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