[ANN] Autumn 2.0: Easy, fresh, powerful IRC bots

T

Tim Morgan

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, :eek:nly => [ :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/autumn-leaves/
API docs are at http://www.mechanical-squirrel.com/autumn-docs/

Tim Morgan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top