mini: eventmachine clone of the last.fm irc bot they use at last.fm (in 140 lines)
Grab mini on github. check out a writeup from the last.fm founder: how we use irc at last.fm. mini uses sinatra for webhooks and the eventmachine LineText2 protocol to connect to irc. you can pipe stuff over netcat and get the bot to say it:
echo "Ilovethistuffs yes .. i .. do. " | nc localhost 12345 vmstat | nc localhost 12345 echo "#musicteam,#legal,@alice New album uploaded: ..." | nc somemachine 12345 tail -f /var/log/important.log | nc somemachine 12345Grab mini on github, or install with gem install purzelrakete-mini --source=http://gems.github.com.
Post a comment