Frogbot |
Frogbot is an IRC bot I wrote in Perl. It is based on Net::IRC and has about 4,000 lines of code, not including several CPAN modules. At this time, it is not Open Source. Yes, I know about POE::Component::IRC; if you want to make your own bot, you should use that instead. After building this much code on Net::IRC, I'm not switching. |
Requests |
Requests may be invoked in one of three ways:
In the second case, both the punctuation and the space are required after the nick. The leading period should only be used in the first case. Frogbot will respond in the same way it was addressed So, if you send it a private message, it will reply with a private message. For a complete list of all available Requests, type |
Commands |
Commands are similar to Requests, but may only be invoked by addressing frogbot
directly, i.e.
|
Seen |
Frogbot's most popular Request is This feature is case-insensitive, but does not respect RFC1459 case-insensitivity
of {}|~ and []\^ characters. On a server that uses RFC1459 casemapping, Note that frogbot does not see itself (this is partly intentional). Also, there's
a version of |
Headlines |
Frogbot has the ability to monitor news headlines from RSS feeds and
display them in a channel. This is configured on a per-channel, per-server,
per-feed basis. Headlines are displayed in dark grey, with If you would like headlines from a particular feed displayed in your channel, let me know. If you want to block the display of headlines in your IRC client, look here. Also, |
Help |
If you're interested in implementing a help feature in your own bot, and would like it to work cooperatively with frogbot (or other bots), here's the logic I use:
The important thing is, if a user says If you're using IQ, let me know; I have a help module, but it should be updated for the new version of IQ and I've been lazy. |
HCounter |
Frogbot maintains a count of the number of times someone has said
“heh” on a line by itself; this count is stored in an SQL table
(for persistance) and has a scalar tied to it (because I wanted to learn
how to tie things). So, when someone said “heh”, the count
is incremented with |
Spelling |
Frogbot queries Google for spelling suggestions. Results are not guaranteed
to be accurate, only popular. Google returns identical results for words that
are spelled correctly, or words that are so badly misspelled that there are no
suggestions. Use the |
See Also |
Props to f0rked's IQ, an IRC bot written in PHP (as disturbing a concept as that is). We've exchanged ideas from time to time. |
Themes |
Random Quote |
“I love humanity, it's people I don't like.”
- Charles Schulz |