RCBot;
use 5.010;
use strict;
use warnings;
our $VERSION = '0.01_01';
use AnyEvent::Redis;
use JSON;
=head1 NAME
ZenIRCBot - Perl API for ZenIRCBot
=head1 SYNOPSIS
use ZenIRCBot;
my $bot =
ent->subscribe('in', sub {
my ($raw, $channel) = @_;
my $json = JSON->new->allow_nonref;
my $msg = $json->decode($raw);
&{$func}($msg, $channel);
});
}
# Blocking
$to];
}
for my $channel (@{$to}) {
my $json = JSON->new->allow_nonref->allow_blessed->convert_blessed;
my $data = $json->encode({
version => 1,
type =>