From 3cdbe25624e004e048af74ae3840af2d5a698e33 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 18 Oct 2015 00:36:00 +0100 Subject: [PATCH] Initial commit --- Changes | 5 + MANIFEST | 6 ++ Makefile.PL | 28 +++++ README | 40 ++++++++ lib/App/Statsbot.pm | 243 ++++++++++++++++++++++++++++++++++++++++++++ statsbot | 116 +++++++++++++++++++++ t/App-Statsbot.t | 7 ++ 7 files changed, 445 insertions(+) create mode 100644 Changes create mode 100644 MANIFEST create mode 100644 Makefile.PL create mode 100644 README create mode 100644 lib/App/Statsbot.pm create mode 100755 statsbot create mode 100644 t/App-Statsbot.t diff --git a/Changes b/Changes new file mode 100644 index 0000000..e9caba6 --- /dev/null +++ b/Changes @@ -0,0 +1,5 @@ +Revision history for Perl extension App::Statsbot. + +0.001 2015-10-18T00:36+01:00 + - Initial release (repackage of the original script from 2013 with + very few additions) diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..9d4e27e --- /dev/null +++ b/MANIFEST @@ -0,0 +1,6 @@ +Changes +Makefile.PL +MANIFEST +README +t/App-Statsbot.t +lib/App/Statsbot.pm diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..da89098 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,28 @@ +use 5.014000; +use ExtUtils::MakeMaker; + +WriteMakefile( + NAME => 'App::Statsbot', + VERSION_FROM => 'lib/App/Statsbot.pm', + ABSTRACT_FROM => 'lib/App/Statsbot.pm', + AUTHOR => 'Marius Gavrilescu ', + EXE_FILES => [qw/statsbot/], + MIN_PERL_VERSION => '5.14.0', + LICENSE => 'perl', + SIGN => 1, + PREREQ_PM => { + qw/POE::Component::IRC::State 0 + IRC::Utils 0 + DBI 0 + DBD::SQLite 0 + Text::ParseWords 0 + Time::Duration 0 + Time::Duration::Parse 0/, + }, + META_MERGE => { + dynamic_config => 0, + resources => { + repository => 'https://git.ieval.ro/?p=app-statsbot.git', + } + } +); diff --git a/README b/README new file mode 100644 index 0000000..dc75f0c --- /dev/null +++ b/README @@ -0,0 +1,40 @@ +App-Statsbot version 0.001 +========================== + +statsbot is a simple IRC bot that tracks the people that inhabit a +channel. It is able to answer queries of the form "In the last