Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/p5-unazusan
https://github.com/songmu/p5-unazusan
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/p5-unazusan
- Owner: Songmu
- License: other
- Created: 2013-09-04T14:19:49.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-21T09:19:02.000Z (almost 11 years ago)
- Last Synced: 2024-10-11T21:09:33.996Z (27 days ago)
- Language: Perl
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
UnazuSan - IRC reaction bot framework
# SYNOPSIS
use UnazuSan;
my $unazu_san = UnazuSan->new(
host => 'example.com',
password => 'xxxxxxxx',
enable_ssl => 1,
join_channels => [qw/test/],
);
$unazu_san->on_message(
qr/^unazu_san:/ => sub {
my $receive = shift;
$receive->reply('うんうん');
},
qr/(.)/ => sub {
my ($receive, $match) = @_;
say $match;
say $receive->message;
},
);
$unazu_san->on_command(
help => sub {
my ($receive, @args) = @_;
$receive->reply('help '. ($args[0] || ''));
}
);
$unazu_san->run;# DESCRIPTION
UnazuSan is IRC reaction bot framework.
__THE SOFTWARE IS ALPHA QUALITY. API MAY CHANGE WITHOUT NOTICE.__
# LICENSE
Copyright (C) Masayuki Matsuki.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHOR
Masayuki Matsuki