[Bot] Add basic connect/disconnect functionality, refactor some things
[Utils][+test] Add ensureArray