the problem was with another part of the code, it ...
# ktor
o
the problem was with another part of the code, it was checking a method in the main bot class which returned the connected var of BasicConnection. Changing that bit made the code work. ALso i had to debug the threads