0

Does any one know of a good irc bot written in perl?

I just need a simple one that logs on to said channel, then replies things based on what the user says.

e.g.

The user:

<tgwizman> !time

The bot replies

<BlahBot> The time is 4:38:54 AM
Tgwizman
  • 1,469
  • 2
  • 19
  • 34
  • I have edited the question to remove the part about module installation because that topic already has been discussed. You can simply undo it if you do not agree. Next time, please [open a seperate question](http://stackoverflow.com/questions/ask) for unrelated problems. – See the [Stack Overflow Perl FAQ](http://stackoverflow.com/questions/tagged/perl?sort=faq): [What's the easiest way to install a missing Perl module?](http://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module) – daxim May 25 '11 at 09:32
  • That's fine, and next time I will make a different question. – Tgwizman May 25 '11 at 09:41
  • What have you tried writing so far and how did it work? This site is for questions relating to developing software, not software recommendation lists. – Daenyth May 25 '11 at 11:48
  • I'm not trying to write one, I'm more so looking for one to learn from. I would like to learn some perl, but I have recently lost interest in this topic, but I'll leave this page here for anyone else needing help referring to this topic, unless it would go somewhere else. – Tgwizman May 30 '11 at 09:33

2 Answers2

3

Last time I made an IRC bot I used AnyEvent::IRC::Client. The example there can be used to start developing your own bot.

Also Net::IRC page suggests some alternatives.

daxim
  • 39,270
  • 4
  • 65
  • 132
n0rd
  • 11,850
  • 5
  • 35
  • 56
2

Bot::BasicBot CPAN distribution contains several example bots. Projects Using POE page contains lists of POE-based IRC bots. See also answers here: CHATBOT: Programming a chatbot with Perl

Community
  • 1
  • 1
Alexandr Ciornii
  • 7,346
  • 1
  • 25
  • 29