2010-03-17 07:36:54 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
#
|
|
|
|
# File: pbot.pl
|
|
|
|
# Author: pragma_
|
|
|
|
#
|
|
|
|
# Purpose: IRC Bot (3rd generation)
|
|
|
|
#
|
|
|
|
# Version History:
|
|
|
|
########################
|
|
|
|
|
2010-03-22 08:33:44 +01:00
|
|
|
my $VERSION = "1.0.0";
|
2010-03-17 07:36:54 +01:00
|
|
|
|
|
|
|
########################
|
2010-03-22 08:33:44 +01:00
|
|
|
# 1.0.0 (03/14/10): Initial version using PBot::PBot module
|
2010-03-17 07:36:54 +01:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use PBot::PBot;
|
|
|
|
|
|
|
|
my $home = $ENV{HOME};
|
|
|
|
|
|
|
|
my %config = ( log_file => "$home/pbot/log",
|
|
|
|
|
2010-03-22 08:33:44 +01:00
|
|
|
admins_file => "$home/pbot/admins",
|
|
|
|
channels_file => "$home/pbot/channels",
|
|
|
|
|
|
|
|
factoids_file => "$home/pbot/factoids",
|
|
|
|
export_factoids_path => "$home/pbot/factoids.html",
|
|
|
|
export_factoids_site => 'http://blackshell.com/~msmud/pbot2/factoids.html',
|
|
|
|
module_dir => "$home/pbot/modules",
|
|
|
|
|
|
|
|
quotegrabs_file => "$home/pbot/quotegrabs",
|
|
|
|
export_quotegrabs_path => "$home/pbot/quotegrabs.html",
|
|
|
|
export_quotegrabs_site => 'http://blackshell.com/~msmud/pbot2/quotegrabs.html',
|
2010-03-17 07:36:54 +01:00
|
|
|
|
|
|
|
ircserver => 'irc.freenode.net',
|
2010-03-22 08:34:43 +01:00
|
|
|
botnick => 'pbot3',
|
|
|
|
identify_password => '*',
|
2010-03-17 07:36:54 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
my $pbot = PBot::PBot->new(%config);
|
|
|
|
|
2010-03-22 08:33:44 +01:00
|
|
|
$pbot->start();
|
2010-03-17 07:36:54 +01:00
|
|
|
|
2010-03-22 08:33:44 +01:00
|
|
|
# not reached
|