Fixed error where bot wouldn't detect it was op

This was due to an issue in the logger.