perl-Capulcu-Bot - Capulcu Bot

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Capulcu-Bot
Package version 0.1
Package release alt1
Package architecture noarch
Package type rpm
Installed size 11.24 KB
Download size 11.24 KB
Official Mirror
Capulcu::Bot or simply capulcu is a highly modular IRC bot. It's a simple
and powerful bot. It's using Bot::BasicBot. Copy config.example to
~/.capulcu/config and start using bot.
Writing plugins is easy. Let's say you want to reply someone when he
says !hello. Make a perl module named Capulcu::Plugin::Hello.
package Capulcu::Plugin::Hello;
use Capulcu::Bot qw/match_func/;
sub say_hello {
return 'Hello';
match_func ('^!hello', \&say_hello);
That's it! Make sure to add this plugin to your config file. Capulcu will
say hello when someone write !hello.
Let's say you want to say hello when someone join channel. It's simple
just add join_func to your script and use it like this:
package Capulcu::Plugin::Hello;
use Capulcu::Bot qw/join_func/;
sub say_hello {
return 'Hello';
join_func (\&say_hello);
See it's simple. Capulcu is providing a complete abstraction.
Exportable functions:
=over 3
=item add_help
Add help to a commands. It's usually using after match_func. Example:
add_help ('!hello', 'Say hello');
People can get help items with .help command. This is only builtin command
in this bot. '.help' will list available help topics and when user use
'.help !hello' he will get it's description: 'Say hello'.
=item join_func
Codeblock will run when someone joined the channel. It takes only one
parameter, ref to codeblock.
=item match_func
Codeblock will run when match. It takes two parameter, first one is regex
and second one ref to codeblock. Example:
match_func ('^!hello', \&say_hello);
When someone say !hello it will run codeblock pointed to say_hello.
=item connect_func
Codeblock will run when bot successfully connected to server.
=item get_config
Get some configuration value. Example:
get_config ('nick');
=item say_something
Say something to someone. It requires a hash with who, channel and body keys.
say_something (who => 'NickServ',
channel => 'msg',
body => 'identify mypassword');
This will identify bot (Note: capulcu already have a built in identify


Package Version Architecture Repository
perl-Capulcu-Bot - - -


Name Value
/usr/share/perl5 -
perl( -
perl(Bot/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Capulcu/ = 0.100
perl(Capulcu/Plugin/ -
perl-Capulcu-Bot = 0.1-alt1


Type URL
Binary Package perl-Capulcu-Bot-0.1-alt1.noarch.rpm
Source Package perl-Capulcu-Bot-0.1-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Capulcu-Bot rpm package:
    # sudo apt-get install perl-Capulcu-Bot



See Also

Package Description
perl-Capulcu-Bot-scripts-0.1-alt1.noarch.rpm Capulcu-Bot scripts
perl-Card-Magnetic-0.003-alt1.noarch.rpm Magnetic Stripe parser
perl-Caroline-0.22-alt1.noarch.rpm Yet another line editing library
perl-Carp-Always-Color-0.07-alt1.noarch.rpm Carp::Always, but with color
perl-Carp-Always-DieOnly-0.01-alt1.noarch.rpm Like Carp::Always, but only print stacktrace on die()
perl-Carp-Always-Dump-0.06-alt1.noarch.rpm Like Carp::Always, but dumps the content of function arguments
perl-Carp-Always-EvenObjects-0.003000-alt2.noarch.rpm DEPRECATED
perl-Carp-Always-SyntaxHighlightSource-0.03-alt1.noarch.rpm Carp::Always, but show syntax-highlighted source code context
perl-Carp-Clan-Share-0.013-alt1_27.noarch.rpm Share your Carp::Clan settings with your whole Clan
perl-Carp-Diagnostics-0.05.3-alt1.noarch.rpm Carp with a diagnostic message
perl-Carp-Ensure-0.23-alt1.noarch.rpm perl module Carp-Ensure
perl-Carp-Fix-1_25-1.000001-alt1.noarch.rpm Smooth over incompatible changes in Carp 1.25
perl-Carp-Mailer-0.1-alt1.noarch.rpm perl module Carp-Mailer
perl-Carp-Notify-1.13-alt1.noarch.rpm Loudly complain in lots of places when things break badly
perl-Carp-POE-0.10-alt1.noarch.rpm Carp adapted to POE