Class Main

java.lang.Object
com.fortemate.dicechess.bot.Main

public class Main extends Object
Entry point for the Dice Chess Java bot starter template.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Starts the bot application, loads configuration from environment variables, and binds the embedded HTTP webhook server.
    static HttpServer
    start(int port, com.fortemate.dicechess.runtime.WebhookKeys keys, Strategy strategy)
    Starts the webhook server on an explicit port with configured keys and strategy, registering default health endpoints.
    static HttpServer
    start(int port, String secret, Strategy strategy)
    Starts the webhook server with a single active secret.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • main

      public static void main(String[] args)
      Starts the bot application, loads configuration from environment variables, and binds the embedded HTTP webhook server.
      Parameters:
      args - command-line arguments (currently unused)
    • start

      public static HttpServer start(int port, com.fortemate.dicechess.runtime.WebhookKeys keys, Strategy strategy) throws IOException
      Starts the webhook server on an explicit port with configured keys and strategy, registering default health endpoints.
      Parameters:
      port - the listening port (0 for ephemeral)
      keys - the webhook key configuration
      strategy - the bot strategy
      Returns:
      the running HTTP server
      Throws:
      IOException - if the server fails to bind
    • start

      public static HttpServer start(int port, String secret, Strategy strategy) throws IOException
      Starts the webhook server with a single active secret.
      Parameters:
      port - the listening port (0 for ephemeral)
      secret - the active secret
      strategy - the bot strategy
      Returns:
      the running HTTP server
      Throws:
      IOException - if the server fails to bind