#!/usr/bin/perl -w use v5.14; use App::Statsbot; use Getopt::Long; use sigtrap qw/die normal-signals/; GetOptions( 'debug!' => \$App::Statsbot::DEBUG, 'tick=i' => \$App::Statsbot::TICK, 'nickname=s' => \$App::Statsbot::NICKNAME, 'server=s' => \$App::Statsbot::SERVER, 'port=i' => \$App::Statsbot::PORT, 'ssl!' => \$App::Statsbot::SSL, 'channel=s' => \@App::Statsbot::CHANNELS, 'db=s' => \$App::Statsbot::DB, ); App::Statsbot->run; __END__ =encoding utf-8 =head1 NAME statsbot - simple IRC bot that tracks time spent in a channel =head1 SYNOPSIS statsbot --nickname=sbot --channel='#somechan' # Bot will respond to queries of the forms: # < mgv> !presence mgv # < mgv> presence mgv '1 day' # < mgv> BOTNICK: !presence mgv '1 year' 2 # < mgv> BOTNICK: presence mgv =head1 DESCRIPTION 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