-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME
43 lines (34 loc) · 968 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
NAME
AnySan - ANY mesSaging protocol hANdler
SYNOPSIS
# echo bot
use AnySan;
use AnySan::Provider::IRC;
my $irc = irc
'chat.example.net',
key => 'example1',
nickname => 'AnySan1',
channels => {
'#anysan1' => {},
'#anysan2' => {},
};
AnySan->register_listener(
echo => {
cb => sub {
my $receive = shift;
return unless $receive->message =~ /^!yappo/;
$receive->send_replay($receive->message);
}
}
);
AnySan->run;
DESCRIPTION
AnySan is AnyEvent based some messaging protocol handling program tool
kit.
AUTHOR
Kazuhiro Osawa <yappo <at> shibuya <döt> pl>
SEE ALSO
AnySan::Receive, AnyEvent
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.