fix error in sending bot name, incorrect log.error reference