Exposed bot function for iceman
rename client --> connection, fixed room global
Added extra debug output