pub async fn handle_command(command: Commands, state: State) -> Result<()>