Minor restructuring of bot code

Did some minorly improved restructuring and refactoring of bot code.
Mostly regarding stream status functions.