Update handler to handle bots