Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Autumn 2.0: Easy, fresh, powerful IRC bots
Tim Morgan
2/29/2008 7:17:00 PM
Autumn 2.0 has arrived! This all-new version of Autumn Leaves, the IRC
bot framework for Ruby, is much more powerful, while still being fun and
easy to use. Autumn 2.0 includes an entirely new IRC library, written
from scratch for Autumn. Writing a bot is still as simple as:
class MyBot < Autumn::Leaf
def awesome_command(stem, sender, channel, msg)
return "#{sender[:nick]} is awesome!"
end
end
Autumn 2.0 also includes ActiveRecord-like database support with the use
of the DataMapper gem. Now your leaves can have powerful access to
databases in the same way your Rails apps do:
class MyBot < Autumn::Leaf
def awesome_command(stem, sender, channel, msg)
if AwesomeUser.find :name => sender[:nick] then
return "You are awesome!"
else
return "Sorry, you'll be awesome some day!"
end
end
end
And don't forget filters!
before_filter :authenticate, :only => [ :reload, :quit ]
I've added a lot to Autumn 2.0, from full-featured CTCP support to a
completely new development environment featuring rake tasks and
script/generate actions just like Rails. Under the hood it's a
completely new engine, with multithreading, support for multiple bots
off one nick and multiple nicks off one bot, and a whole extensible
framework for making your IRC support bigger and better.
For complete details, visit Autumn's home page at
http://code.google.com/p/autu...
API docs are at
http://www.mechanical-squirrel.com/au...
Tim Morgan
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Autumn 2.0: Easy, fresh, powerful IRC bots
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password