]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot
add DebianBugs and W3Scraper
[infobot.git] / blootbot
index 5be764241267ddb8b484246468da68a5eecd7030..a888ed2c9b5c259f780ca13aff36f90f14b9f2f6 100755 (executable)
--- a/blootbot
+++ b/blootbot
@@ -5,7 +5,7 @@
 
 use strict;
 use vars qw($bot_base_dir $bot_src_dir $bot_misc_dir $bot_state_dir
-           $bot_data_dir $bot_config_dir $bot_log_dir $bot_run_dir 
+           $bot_data_dir $bot_config_dir $bot_log_dir $bot_run_dir
            $bot_pid $memusage %param
 );
 
@@ -27,6 +27,8 @@ BEGIN {
 
     $bot_pid           = $$;
 
+    unshift @INC,"$bot_src_dir","$bot_src_dir/Modules";
+
     require "$bot_src_dir/logger.pl";
     require "$bot_src_dir/core.pl";
     require "$bot_src_dir/modules.pl";
@@ -47,7 +49,7 @@ BEGIN {
 # prevent duplicate processes of the same bot
 &duperuncheck();
 
-# initialize everything 
+# initialize everything
 &startup();    # first time initialization.
 &setup();
 
@@ -62,9 +64,7 @@ exit 0;  # just so you don't look farther down in this file :)
 
 # --- support routines
 
-# FIXME.
-#   add arguments, basically '-h' and '--help', heh.
-#
+# FIXME: add arguments, basically '-h' and '--help', heh.
 
 # added by the xk
 sub duperuncheck {