From: dms Date: Sat, 29 Jul 2000 16:09:47 +0000 (+0000) Subject: changed email address X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=3780524a411a9fb1618a26e49c40d36923b7afcc changed email address git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@11 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/INSTALL.patches b/INSTALL.patches index 440ca3b..f8e8902 100644 --- a/INSTALL.patches +++ b/INSTALL.patches @@ -6,3 +6,7 @@ INSTALL.patches patch -p0 < Net::IRC.patch - cd /usr/lib/perl5/WWW/Search patch -p0 < WWW::Search::Google.patch + +- alternatively, move the files from patches/ + - mv patches/Google.pm /usr/lib/perl5/WWW/Search/ + - mv patches/Connections.pm /usr/lib/perl5/Net/IRC/ diff --git a/README b/README index 709d64c..24817b7 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -blootbot v1.0.0RC3 (20000709) +blootbot v1.0.0 (20000729) ------------------------- INTRODUCTION @@ -9,28 +9,54 @@ in the original infobot source and fixed in this version. Without infobot, there would be no blootbot so all thanks to kevin for bringing infobot in the first place. - as of 0.99pre1, blootbot supports mysql database in the hope to +FEATURES + * Additional information stored with factoids. (factinfo) + * Wide range of statistics for Bot, Factoids, IRC, Debian. + (status, factstats, ircstats, chanstats, cmdstats) + * Advanced topic management. (the first cool feature) + * Improved factoid search, allowing search by key or value. + * Freshmeat support (freshmeat.net) + * Debian Contents and Packages, search and info. + * ChanServ/NickServ (OPN) support. + * WWW-Search (eg: google for BLAH) + * Slashdot,Kernel and Freshmeat auto-update announcements. + * Units conversion (provided by external module, Units-Module) + + DESIGN + - Modularity. Ability to disable IRC or Factoid support. + - Funky pseudo Module autoloader support + - Eleet Forker() function + +Improvements include: + * log file is not opened and closed for each line of data + => unblocked logging is used. + * seen data is not flushed for each public message on IRC + => caching and flushing over an interval is used. + +HISTORY + As of 0.99pre1, blootbot supports mysql database in the hope to increase performance and to avoid borked over dbm's which occurred when the bot crashed (??). The mysql code is far larger (or perhaps twice as many functions) than expected even though a few functions were needed for DBM due to lack of table deficiencies. - as of 1.0.0pre1, blootbot takes advantage of Net::IRC. The change -over was fairly comfortable (95% clean). Just minor problems here and -there, mostly debugging and getting it right. + As of 1.0.0pre1, blootbot takes advantage of Net::IRC. The +change over was fairly comfortable (95% clean). Just minor problems here +and there, mostly debugging and getting it right. -UPDATE: - as of 1.0.0RC2, the old style DBM (Berkeley) has been ported back. -It should work in all but 3 specific (countdown, factstats unreq) cases. -preliminary pgsql support has been added but someone with pgperl knowledge -needs to fix it up or at least unify the module with mysql. + As of 1.0.0RC2, the old style DBM (Berkeley) has been ported +back. It should work in all but 3 specific (countdown, factstats unreq) +cases. preliminary pgsql support has been added but someone with pgperl +knowledge needs to fix it up or at least unify the module with mysql. + +INSTALLATION + - Read INSTALL and INSTALL.patches + - Copy files/sample.config to files/infobot.config + - Edit files/infobot.config + - ./blootbot - Please apply the patches from patches/*.patch. Method: - cd /usr/lib/perl5 - cat *.patch | patch -p0 - ### FIXME: what's the best way to apply patches? - ### for the time being, patch manually. +NOTICE Be warned that this bot consumes quite a lot of memory upon start up and during usage. Right now, 7.4megs is used for old'ish perl, 8.3megs with perl 5.005. fork() is used but don't be alarmed at the memory usage @@ -48,30 +74,6 @@ welcomed. to support dbm185or2//mysql//postgresql. It's available at ftp://leguin.org.uk/pub/bloatbot/ -FEATURES - * Additional information stored with factoids. (factinfo) - * Wide range of statistics for Bot, Factoids, IRC, Debian. - (status, factstats, ircstats, chanstats, cmdstats) - * Advanced topic management. (the first cool feature) - * Improved factoid search, allowing search by key or value. - * Freshmeat support (freshmeat.net) - * Debian Contents and Packages, search and info. - * ChanServ/NickServ (OPN) support. - * WWW-Search (eg: google for BLAH) - * Slashdot,Kernel and Freshmeat auto-update announcements. - * Units conversion (provided by external module, Units-Module) - - DESIGN - - Modularity. Ability to disable IRC or Factoid support. - - Funky pseudo Module autoloader support - - Eleet Forker() function - -Improvements include: - * log file is not opened and closed for each line of data - => unblocked logging is used. - * seen data is not flushed for each public message on IRC - => caching and flushing over an interval is used. - MODIFICATIONS All modifications are that of the blootbot author unless otherwise specified, like none. See 'ChangeLog' for details. A list of future @@ -109,10 +111,6 @@ variables. If you're hardcore, check out 'CommandStubs.pl' and unset -- ... -INSTALLATION - edit files/infobot.config and modify according to needs. - - NOTES To administrate/control the bot remotely, this can only be done through DCC CHAT. /chat . All commands must be prepended by @@ -126,7 +124,6 @@ through DCC CHAT. /chat . All commands must be prepended by - PG/DBM supports need to be worked and thoroughly tested. - CONTRIBUTIONS jCommons, is, netgod, mu and Mercury for attempting to break my modifications, aswell as giving suggestions and ideas in the early @@ -145,4 +142,4 @@ hope to get that same guy to re-send me the patch... CONTACT Contributions of a patch or a job offer can be sent to - + [DOES IT WORK??] diff --git a/doc/USAGE b/doc/USAGE index 9f19658..8f085ab 100644 --- a/doc/USAGE +++ b/doc/USAGE @@ -360,7 +360,7 @@ Usage: Example: > blootbot: join #blootbot [blootbot] joining #blootbot - *** join/#debian blootbot (xk@router.home.org) + *** join/#debian blootbot (bot@router.home.org) > blootbot: join #blootbot [blootbot] I'm already on #blootbot... diff --git a/doc/modules.txt b/doc/modules.txt deleted file mode 100644 index 19489a6..0000000 --- a/doc/modules.txt +++ /dev/null @@ -1,50 +0,0 @@ -### FILE ### STATE -Files.pl - GOOD -Irc.pl - split into another file? -IrcHooks.pl - move hook* to another file like ^^? -Math.pl - stock'ish infobot -Misc.pl - remove checkPing, move Forker to Fork.pl, - move *seen* to Seen.pl -Modules.pl - design hooks for commands, using hash to enable - options like help,fork,... -Net.pl - too much debugging info -Norm.pl - stock'ish infobot -PerlMod.pl - move to loadmods.pl (core), move related - functions to this file aswell. -Process.pl - convert to use hooks. -Question.pl - stock'ish infobot. -Reply.pl - stock'ish infobot. -SQL.pl - GOOD, move factoid stuff to SQLExtra.pl? -SQLExtra.pl - GOOD. -Schedulers.pl - GOOD but a little disorganised. -Shm.pl - move fork* to Fork.pl -Statement.pl - stock'ish infobot. -Update.pl - stock'ish infobot. -User.pl - GOOD. -UserExtra.pl - convert to use hooks? -core.pl - move load-module stuff to loadmods.pl? -interface.pl - move to core.pl? -logger.pl - GOOD. -Modules/Countdown.pl - -Modules/DNS.pl - -Modules/Debian.pl - -Modules/DebianExtra.pl - -Modules/Dict.pl - -Modules/DumpVars.pl - -Modules/Factoids.pl - -Modules/Freshmeat.pl - -Modules/Kernel.pl - -Modules/Quote.pl - -Modules/RootWarn.pl - -Modules/Search.pl - -Modules/Slashdot3.pl - -Modules/Topic.pl - -Modules/Units.pl - -Modules/Uptime.pl - -Modules/UserInfo.pl - -Modules/W3Search.pl - -Modules/WhatIs.pl - -Modules/Wingate.pl - -Modules/babel.pl - -Modules/insult.pl - -Modules/nickometer.pl - diff --git a/files/sample.config b/files/sample.config index 9791952..6c131ba 100644 --- a/files/sample.config +++ b/files/sample.config @@ -1,6 +1,6 @@ # parameter settings file for the infobot # kevin lenzo (lenzo@cs.cmu.edu) -# modified by xk +# modified by dms ### # [str] Interface: [IRC/CLI] diff --git a/scripts/backup_table-slave.pl b/scripts/backup_table-slave.pl index b30a91a..bc7cbc7 100755 --- a/scripts/backup_table-slave.pl +++ b/scripts/backup_table-slave.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl -w # # backup_table-slave.pl: Backup mysql tables -# Author: xk +# Author: dms # Version: v0.1b (20000223) # Created: 20000210 # diff --git a/src/Factoids/DBCommon.pl b/src/Factoids/DBCommon.pl index d28a6bf..fd98ece 100644 --- a/src/Factoids/DBCommon.pl +++ b/src/Factoids/DBCommon.pl @@ -1,6 +1,6 @@ # # DBStubs.pl: DB independent (I hope, heh) factoid support -# Author: xk +# Author: dms # Version: v0.6d (20000223) # Created: 19991020 # diff --git a/src/Factoids/Update.pl b/src/Factoids/Update.pl index ac08042..0642f85 100644 --- a/src/Factoids/Update.pl +++ b/src/Factoids/Update.pl @@ -1,7 +1,7 @@ # # Update.pl: Add or modify factoids in the db. # Author: Kevin Lenzo -# xk +# dms # Version: 19991209 # Created: 1997 # diff --git a/src/Files.pl b/src/Files.pl index d9d96ed..113fe1d 100644 --- a/src/Files.pl +++ b/src/Files.pl @@ -1,6 +1,6 @@ # # Files.pl: Open and close, read and probably write files. -# Author: xk +# Author: dms # Version: v0.2 (2000502) # Created: 19991221 # diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index 34e9942..1abd87e 100644 --- a/src/IRC/Irc.pl +++ b/src/IRC/Irc.pl @@ -1,6 +1,6 @@ # # Irc.pl: IRC core stuff. -# Author: xk +# Author: dms # Version: 20000126 # NOTE: Based on code by Kevin Lenzo & Patrick Cole (c) 1997 # diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 8dc9674..8fc4c07 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -1,6 +1,6 @@ # # IrcHooks.pl: IRC Hooks stuff. -# Author: xk +# Author: dms # Version: 20000126 # NOTE: Based on code by Kevin Lenzo & Patrick Cole (c) 1997 # diff --git a/src/IRC/Schedulers.pl b/src/IRC/Schedulers.pl index deffca5..d92d9a5 100644 --- a/src/IRC/Schedulers.pl +++ b/src/IRC/Schedulers.pl @@ -1,6 +1,6 @@ # # ProcessExtra.pl: Extensions to Process.pl -# Author: xk +# Author: dms # Version: v0.3 (20000707) # Created: 20000117 # diff --git a/src/Misc.pl b/src/Misc.pl index ee15e1c..a7be35f 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -1,6 +1,6 @@ # # Misc.pl: Miscellaneous stuff. -# Author: xk +# Author: dms # Version: 20000124 # NOTE: Based on code by Kevin Lenzo & Patrick Cole (c) 1997 # diff --git a/src/Modules/Countdown.pl b/src/Modules/Countdown.pl index 88477fa..51cae88 100644 --- a/src/Modules/Countdown.pl +++ b/src/Modules/Countdown.pl @@ -1,6 +1,6 @@ # # Countdown.pl: Count down to a particular date. -# Author: xk +# Author: dms # Version: v0.1 (20000104) # Created: 20000104 # diff --git a/src/Modules/Debian.pl b/src/Modules/Debian.pl index 99d9f5d..1430161 100644 --- a/src/Modules/Debian.pl +++ b/src/Modules/Debian.pl @@ -1,6 +1,6 @@ # # Debian.pl: Frontend to debian contents and packages files -# Author: xk +# Author: dms # Version: v0.7b (20000527) # Created: 20000106 # diff --git a/src/Modules/DebianExtra.pl b/src/Modules/DebianExtra.pl index cc47acf..aabaf49 100644 --- a/src/Modules/DebianExtra.pl +++ b/src/Modules/DebianExtra.pl @@ -1,6 +1,6 @@ # # DebianExtra.pl: Extra stuff for debian -# Author: xk +# Author: dms # Version: v0.1 (20000520) # Created: 20000520 # diff --git a/src/Modules/Dict.pl b/src/Modules/Dict.pl index d58bf59..3e613a5 100644 --- a/src/Modules/Dict.pl +++ b/src/Modules/Dict.pl @@ -1,6 +1,6 @@ # # Dict.pl: Frontend to dict.org. -# Author: xk +# Author: dms # Version: v0.6b (19991224). # Created: 19990914. # diff --git a/src/Modules/DumpVars.pl b/src/Modules/DumpVars.pl index 610cc79..cbb3e34 100644 --- a/src/Modules/DumpVars.pl +++ b/src/Modules/DumpVars.pl @@ -1,6 +1,6 @@ # # DumpVars.pl: Perl variables dumper. -# Maintained: xk +# Maintained: dms # Version: v0.1 (20000114) # Created: 20000114 # NOTE: Ripped from ActivePerl "asp sample" example. diff --git a/src/Modules/Factoids.pl b/src/Modules/Factoids.pl index 8e4b48e..4449ef6 100644 --- a/src/Modules/Factoids.pl +++ b/src/Modules/Factoids.pl @@ -1,6 +1,6 @@ # # Factoids.pl: Helpers for generating factoids statistics. -# Author: xk +# Author: dms # Version: v0.1 (20000514) # Splitted: SQLExtras.pl # diff --git a/src/Modules/Freshmeat.pl b/src/Modules/Freshmeat.pl index cf421f0..2e32602 100644 --- a/src/Modules/Freshmeat.pl +++ b/src/Modules/Freshmeat.pl @@ -1,6 +1,6 @@ # # Freshmeat.pl: Frontend to www.freshmeat.net -# Author: xk +# Author: dms # Version: v0.7c (20000606) # Created: 19990930 # diff --git a/src/Modules/Kernel.pl b/src/Modules/Kernel.pl index a1c1f8b..c9749f9 100644 --- a/src/Modules/Kernel.pl +++ b/src/Modules/Kernel.pl @@ -1,6 +1,6 @@ # # Kernel.pl: Frontend to linux.kernel.org. -# Author: xk +# Author: dms # Version: v0.3 (19990919). # Created: 19990729 # diff --git a/src/Modules/RootWarn.pl b/src/Modules/RootWarn.pl index 712ec0c..ddb533a 100644 --- a/src/Modules/RootWarn.pl +++ b/src/Modules/RootWarn.pl @@ -1,6 +1,6 @@ # # RootWarn.pl: Warn people about usage of root on IRC. -# Author: xk +# Author: dms # Version: v0.2c (19991125) # Created: 19991008 # diff --git a/src/Modules/Slashdot3.pl b/src/Modules/Slashdot3.pl index 02d74d6..f260507 100644 --- a/src/Modules/Slashdot3.pl +++ b/src/Modules/Slashdot3.pl @@ -1,7 +1,7 @@ # # Slashdot.pl: Slashdot headline retrival # Author: Chris Tessone -# Modified: xk +# Modified: dms # Licensing: Artistic License (as perl itself) # Version: v0.4 (19991125) # diff --git a/src/Modules/Topic.pl b/src/Modules/Topic.pl index db465ae..97e68c0 100644 --- a/src/Modules/Topic.pl +++ b/src/Modules/Topic.pl @@ -1,6 +1,6 @@ # # Topic.pl: Advanced topic management (maxtopiclen>=512) -# Author: xk +# Author: dms # Version: v0.8 (19990919). # Created: 19990720 # diff --git a/src/Modules/Uptime.pl b/src/Modules/Uptime.pl index 8c4606e..1ef9d22 100644 --- a/src/Modules/Uptime.pl +++ b/src/Modules/Uptime.pl @@ -1,6 +1,6 @@ # # Uptime.pl: Uptime daemon for infobot. -# Author: xk +# Author: dms # Version: v0.3 (19991008) # Created: 19990925. # diff --git a/src/Modules/UserDCC.pl b/src/Modules/UserDCC.pl index 5a40310..a69c9fe 100644 --- a/src/Modules/UserDCC.pl +++ b/src/Modules/UserDCC.pl @@ -1,6 +1,6 @@ # # UserDCC.pl: User Commands, DCC CHAT. -# Author: xk +# Author: dms # Version: v0.1 (20000707) # Created: 20000707 (from UserExtra.pl) # diff --git a/src/Modules/UserInfo.pl b/src/Modules/UserInfo.pl index c0a856b..6b769e5 100644 --- a/src/Modules/UserInfo.pl +++ b/src/Modules/UserInfo.pl @@ -1,6 +1,6 @@ # # UserInfo.pl: User Information Services -# Author: xk +# Author: dms # Version: v0.1 (20000509). # Created: 20000509 # NOTE: Idea from Flugh. Originally written in tcl for eggdrop by diff --git a/src/Modules/Wingate.pl b/src/Modules/Wingate.pl index fee5c09..0bca799 100644 --- a/src/Modules/Wingate.pl +++ b/src/Modules/Wingate.pl @@ -1,6 +1,6 @@ # # Wingate.pl: Wingate checker. -# Author: xk +# Author: dms # Version: v0.3 (20000526). # Created: 20000116 # NOTE: based on wingate.pl by fooz. diff --git a/src/Net.pl b/src/Net.pl index 53bde52..79967da 100644 --- a/src/Net.pl +++ b/src/Net.pl @@ -1,6 +1,6 @@ # # Net.pl: FTP//HTTP helper -# Author: xk +# Author: dms # Version: v0.1 (20000309) # Created: 20000309 # diff --git a/src/Shm.pl b/src/Shm.pl index e4d037a..7ca47d7 100644 --- a/src/Shm.pl +++ b/src/Shm.pl @@ -1,6 +1,6 @@ # # Shm.pl: Shared Memory stuff. -# Author: xk +# Author: dms # Version: 20000201 # Created: 20000124 # diff --git a/src/UserExtra.pl b/src/UserExtra.pl index 11b6b16..30df109 100644 --- a/src/UserExtra.pl +++ b/src/UserExtra.pl @@ -1,6 +1,6 @@ # # UserExtra.pl: User Commands, Public. -# Author: xk +# Author: dms # Version: v0.2b (20000707) # Created: 20000107 # diff --git a/src/core.pl b/src/core.pl index a93ce4e..de835cb 100644 --- a/src/core.pl +++ b/src/core.pl @@ -1,6 +1,6 @@ # # core.pl: Important functions stuff... -# Author: xk +# Author: dms # Version: v0.4 (20000718) # Created: 20000322 # diff --git a/src/db_dbm.pl b/src/db_dbm.pl index 7efe3e3..f9678ac 100644 --- a/src/db_dbm.pl +++ b/src/db_dbm.pl @@ -1,7 +1,7 @@ # # db_dbm.pl: Extension on the factoid database. # OrigAuthor: Kevin Lenzo (c) 1997 -# CurrAuthor: xk +# CurrAuthor: dms # Version: v0.6 (20000707) # FModified: 19991020 # diff --git a/src/db_mysql.pl b/src/db_mysql.pl index 3cf0433..dc4c14d 100644 --- a/src/db_mysql.pl +++ b/src/db_mysql.pl @@ -1,6 +1,6 @@ # # db_mysql.pl: MySQL database frontend. -# Author: xk +# Author: dms # Version: v0.2c (19991224) # Created: 19991203 # diff --git a/src/db_pgsql.pl b/src/db_pgsql.pl index ac6b4a1..73872de 100644 --- a/src/db_pgsql.pl +++ b/src/db_pgsql.pl @@ -1,6 +1,6 @@ # # db_pgsql.pl: PostgreSQL database frontend. -# Author: xk +# Author: dms # Version: v0.1 (20000629) # Created: 20000629 # diff --git a/src/logger.pl b/src/logger.pl index 07c678b..79f49d7 100644 --- a/src/logger.pl +++ b/src/logger.pl @@ -1,6 +1,6 @@ # # logger.pl: logger functions! -# Author: xk +# Author: dms # Version: 19991205 # NOTE: Based on code by Kevin Lenzo & Patrick Cole (c) 1997 # diff --git a/src/modules.pl b/src/modules.pl index 51a51df..1cc58a1 100644 --- a/src/modules.pl +++ b/src/modules.pl @@ -1,6 +1,6 @@ # # modules.pl: pseudo-Module handler -# Author: xk +# Author: dms # Version: v0.2 (20000629) # Created: 20000624 #