Skip to content

Commit

Permalink
Re-add database stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Sep 27, 2011
1 parent 2e17bea commit 5669b1e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions b4bot.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ package MyBot;
my $config = YAML::LoadFile('config.yaml');
my $comchar = $config->{'comchar'};

my $dbh = "nope";

#my $dbh = DBI->connect(
# $config->{'database'}->{'dsn'},
# $config->{'database'}->{'username'},
# $config->{'database'}->{'password'});
#$dbh->{mysql_auto_reconnect} = 1;
my $dbh = DBI->connect(
$config->{'database'}->{'dsn'},
$config->{'database'}->{'username'},
$config->{'database'}->{'password'});
$dbh->{mysql_auto_reconnect} = 1;

# CHANGEPROP: 'Custom.pm' module for this stuff?
sub uptime() {
Expand Down

0 comments on commit 5669b1e

Please sign in to comment.