Fixed a bug that occured when the bot was kicked from a channel
Removed debugging code and tidied up