Did alot of work. First I designed an outline for plugins. Next I rewrote connection so it would be a protocol plugin allowing for other IM protocols to be implemented in the future. I also more or less compleatly rewrote bot to act as a relay between plugins.