bot connects to channels and removed unused code