]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/txt2mysql.pl
- someone contacted me. looked at this script and it was broken. now
[infobot.git] / scripts / txt2mysql.pl
index ec9648e5254dda4b7e88a7d31e347ebe754c9dbf..47a70b7437c0b24d18a4a3ad0da0a953bab60442 100755 (executable)
@@ -18,10 +18,10 @@ if (!scalar @ARGV) {
 my $txtfile = shift;
 open(IN,$txtfile) or die "error: cannot open txtfile '$txtfile'.\n";
 
-# read the infobot config.
-&loadConfig("files/infobot.config");
+# read the bot config file.
+&loadConfig("files/blootbot.config");
 &loadDBModules();
-&openDB();
+&openDB($param{'DBName'}, $param{'SQLUser'}, $param{'SQLPass'});
 
 ### now pipe all the data to the mysql server...
 my $i = 1;