It could also be as simple as the bot selecting a feel better buddy from a circular queue and asking that person to send a nice tweet to someone who needs it. This could either be "handwritten" or via some web app that authenticates on Twitter and lets you manually send a canned tweet (not unlike a share button)