- Articles
- Notes
- Replies
- Presentations
- Pages
- Contact
Loqi is an IRC bot that lurks in several channels on irc.freenode.net. He is mostly a utility bot, but occasionally enjoys a bit of playful conversation.
Loqi is built around the MediaWiki Recent Changes bot. This is a small Perl script that uses POE::Component::IRC to speak the IRC protocol.
Loqi started out as a way to alert us of recent changes in MediaWiki instances. When a UDP packet is received from a MediaWiki instance, a message is printed in the corresponding channel. This mechanism has allowed Loqi to be extended to many other purposes. I can easily send messages to Loqi from other scripts and other servers by simply sending a UDP packet. This has allowed me to use Loqi for debugging and logging of websites, as an easy way to get notifications of unusual activity in the system without checking log files.
open()
and pipes the IRC line to stdin of the PHP script.Loqi is not a chatbot like ALICE or Eliza. He will respond to various trigger words, but don't expect to have a full conversation with him. As a consequence, his responses seem less scripted, and you may not even notice he is a bot at first, such as in this exchange from #pdxwebdev:
donpdonp: i might have to just pony up the dough tyler: I WANT A PONY * Loqi gives tyler-iphone A PONY tyler: yay! * Loqi giggles tyler: i never know if its the loqi AI or aaron * Loqi grins profusely caseorganic: haha - it's all loqi ai Loqi: awesome
You can find Loqi in these channels on irc.freenode.net.
Some fun conversations Loqi has been a part of are documented on his Tumblr account: loqisaur.tumblr.com