C++ implementation of a basic irc+xmpp chat bot