Net::Jabber::Bot

Automated Bot creation with safeties
Download

Net::Jabber::Bot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Todd Rinaldo
  • Publisher web site:
  • http://search.cpan.org/~toddr/

Net::Jabber::Bot Tags


Net::Jabber::Bot Description

Automated Bot creation with safeties Net::Jabber::Bot is a Moose-based class.The idea behind the module is that someone creating a bot should not really have to know a whole lot about how the Jabber protocol works in order to use it. It also allows us to abstract away all the things that can get a bot maker into trouble. Essentially the object helps protect the coders from their own mistakes.All someone should have to know and define in the program away from the object is:1. Config - Where to connect, how often to do things, timers, etc2. A subroutine to be called by the bot object when a new message comes in.3. A subroutine to be called by the bot object every so often that lets the user do background activities (check logs, monitor web pages, etc.),The object at present has the following enforced safeties as long as you do not override safety mode:1. Limits messages per second, configurable at start up, (Max is 5 per second) by requiring a sleep timer in the message sending subroutine each time one is sent.2. Endless loops of responding to self prevented by now allowing the bot message processing subroutine to know about messages from self3. Forum join grace period to prevent bot from reacting to historical messages4. Configurable aliases the bot will respond to per forum5. Limits maximum message size, preventing messages that are too large from being sent (largest configurable message size limit is 1000).6. Automatic chunking of messages to split up large messages in message sending subroutine7. Limit on messages per hour. (max configurable limit of 125) Messages are visible via log4perl, but not ever be sent once the message limit is reached for that hour. Requirements: · Perl


Net::Jabber::Bot Related Software