-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.pl
More file actions
52 lines (39 loc) · 1.05 KB
/
Copy pathbot.pl
File metadata and controls
52 lines (39 loc) · 1.05 KB
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
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env perl -w
use warnings;
use strict;
use lib 'lib';
use Bot::BasicBot::Pluggable;
use Bot::BasicBot::Pluggable::Store::DBIJSON;
my $store = Bot::BasicBot::Pluggable::Store::DBIJSON->new(
dsn => "DBI:Pg:dbname=aloha",
user => "aloha",
password => "aloha",
table => "bot",
# create indexes on key/values?
create_index => 1,
);
#my $store = Bot::BasicBot::Pluggable::Store::Storable->new(
# dir => "store"
#);
# with all known options
my $bot = Bot::BasicBot::Pluggable->new(
server => "irc.perl.org",
port => "6667",
channels => ["#parrot"],
nick => "aloha",
username => "aloha",
name => "bacek's nick completion bot",
ignore_list => [qw(purl)],
charset => "utf-8", # charset the bot assumes the channel is using
loglevel => 'debug',
store => $store,
);
#$bot->store($store);
$bot->load('Auth');
$bot->load('Loader');
#$bot->load('Infobot');
#$bot->load('Karma');
#$bot->load('Seen');
#$bot->load('Message');
#$bot->load('Maths');
$bot->run();