Put the chocolate in a heatproof bowl over a saucepan of simmering water, making sure the base of the bowl doesn’t touch the water. Leave the chocolate until it has softened, then stir occasionally until melted. Add the butter and stir until melted. Remove the bowl from the saucepan and cool for a few minutes. Add the eggs and cognac and stir to combine.