fix code that caused botinfo command to break.