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, 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
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, 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