Net::YAIL

Library built for dealing with IRC communications in Ruby
Download

Net::YAIL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT
  • Price:
  • FREE
  • Publisher Name:
  • Jeremy Echols
  • Publisher web site:
  • http://rubyforge.org/projects/ruby-irc-yail/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 25 KB

Net::YAIL Tags


Net::YAIL Description

Library built for dealing with IRC communications in Ruby Ruby wrapper around the basic IRC protocol. Simple event handling interface for both outgoing and incoming events, and very easy to build a working bot from the included examples.Here are some key features of "Net YAIL":? Allows event handlers to be specified very easily for all known IRC events, and except in a few rare cases one can choose to override the default handling mechanisms.? Allows handling outgoing messages, such as when privmsg is called. The API won't allow you to stop the outgoing message , but you can filter data before it's sent out.? Threads for input and output are persistent. This is a feature, not a bug. ? "Stacked" event handling is possible if you want to provide a very modular framework of your own. When you prepend a handler, its return determines if the next handler will get called. This isn't useful for a simple bot most likely, but can have some utility in bigger projects where a single event may need to be dispatched to several handlers.? Easy to build a simple bot without subclassing anything. ? Lots of built-in reporting. You may hate this part, but for a bot, it's really handy to have most incoming data reported on some level. ? Built-in PRIVMSG buffering! You can of course choose to not buffer, but by default you cannot send more than one message to a given target (user or channel) more than once per second. Additionally, this buffering method is ideal for a bot that's trying to be chatty on two channels at once, because buffering is per-target, so queing up 20 lines on #foo doesn't mean waiting 20 seconds to spit data out to #bar. The one caveat here is that if your app is trying to talk to too many targets at once, the buffering still won't save you from a flood-related server kick. ? The included IRCBot is a great starting point for building your own bot, but if you want something even simpler, just look at Net::YAIL's documentation for the most basic working examples. What's New in This Release: · Fixes a five-month-old bug where bots without a handler for :incoming_any simply wouldn't work.


Net::YAIL Related Software