pub async fn run_bot<B: Bot>(
url: &str,
bot: B,
options: RunBotOptions,
) -> Result<Option<Value>, Error>Expand description
Connect a bot to the Chipzen server and play until the match ends.
Returns the match_end payload on a clean finish, or None if the
connection closed without a clean match_end after exhausting the
retry budget. Returns Error::RetriesExhausted if the connection
cannot be established after retry_policy.max_reconnect_attempts
attempts, or Error::BotDecision if decide() panics under
safe_mode = false.