Class Main
java.lang.Object
com.fortemate.dicechess.bot.Main
Entry point for the Dice Chess Java bot starter template.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidStarts the bot application, loads configuration from environment variables, and binds the embedded HTTP webhook server.static HttpServerStarts the webhook server on an explicit port with configured keys and strategy, registering default health endpoints.static HttpServerStarts the webhook server with a single active secret.
-
Method Details
-
main
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 configurationstrategy- the bot strategy- Returns:
- the running HTTP server
- Throws:
IOException- if the server fails to bind
-
start
Starts the webhook server with a single active secret.- Parameters:
port- the listening port (0 for ephemeral)secret- the active secretstrategy- the bot strategy- Returns:
- the running HTTP server
- Throws:
IOException- if the server fails to bind
-