lholman/AutoBot — pull request #10 by pointytwist (2011-11-24 23:54:30+00:00)
Title: Separated Bot logic and HipChat send/receive logic

Created an AutoBot.HipChat.Session class to handle the logon, listening and sending. The original AutoBot.HipChat class still handles the bot logic and PowerShell invocation, but the jabber / DiscoManager nonsense is abstracted away into the Session.

All you need to do now from the bot is Session.Connect with the appropriate username / password, then subscribe to the Session.OnMessageReceived event. To send messages, use Session.SendMessage with the same parameters as before.