Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:

All,
If there is anyone still here that remembers me, a lot has happened since I was active at the Monastery. The biggest news is that I have retired and, in theory, have a lot of free time to enjoy the things I love. I would like to write a custom Twitch Bot which based on the docs I have read uses an IRC interface. I looked for any current Twitch IRC bot written in Perl and they are at least 8 years old. I was wondering what the current state of the world is for IRC Bots? More importantly, if anyone is aware of a Twitch bot in Perl that is up to date.

Lest anyone think I came seeking wisdom without first searching, I did look at IRC::Bot which apparently hasn't been updated since 2007. Then there is WWW::Twitch which seems to be written by our very own Corion but is a web based not IRC tool. Then there is Bot::IRC which has been updated as recently as last year but the description reads - Yet another IRC bot. Why? There are so many good bots and bot frameworks to select from, but I wanted a bot framework that... which makes it seem like the author was scratching their particular itch (which may or may not be good for my purposes).

Having been away from Perl for basically a decade (I nearly forgot my password to the Monastery), I would rather start out with a pointer in the right direction rather than gnash my teeth. So, if anyone is aware of a decent Twitch bot written in Perl or can point me to a modern IRC bot framework that will work for my purposes, please let me know.

Cheers - L~R

  • Comment on What's Current State Of The Art For An IRC Bot?

Replies are listed 'Best First'.
Re: What's Current State Of The Art For An IRC Bot?
by NERDVANA (Priest) on Jun 01, 2024 at 03:56 UTC
    I don't have an answer from experience, but I would say the "state of the art" would be something using an event framework (AnyEvent, Mojo::IOLoop or IO::Async). I can vouch for the skill of the author of Bot::IRC, but it doesn't look like he used an event library. Meanwhile, I see AnyEvent::IRC which hasn't been updated in 10 years, but looks decent.
Re: What's Current State Of The Art For An IRC Bot?
by Anonymous Monk on Jun 01, 2024 at 01:34 UTC

      look at IRC::Bot which apparently hasn't been updated since 2007
    2007 was a very good year! IRC::Bot uses the excellent event-driven POE::Component::IRC. It only has 1 bug report which you may want to persue. The other modules you mention also look good, and I would consider using them too if for example something won't install, and keep an eye on their source code for good ideas about how things get done and what's possible.