Skip to content

Commit

Permalink
*Updating URLs in bot to reflect change in LizardWiki's location
Browse files Browse the repository at this point in the history
*Disabling the @editcount command, because stuff broke.
*Adds a new fishbot response.
*** NOTE: This revision updates the configuration file. ***

git-svn-id: https://lizardbot.googlecode.com/svn/trunk/lizardbot@58 382b71b6-eab9-11dd-85a8-df16bb8a7048
  • Loading branch information
FastLizard4 committed May 15, 2010
1 parent afd88be commit d5572d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
10 changes: 5 additions & 5 deletions lizardbot.conf.php
Expand Up @@ -45,7 +45,7 @@
@fantasy-[on, off] commands override this.
##Windows configuration. If you are running the bot on Windows, you must set this to true!!!!!
$setIsOnWindows: Tells the bot that its running on Windows. Automatically sets $setUsePCREs to true. Please read
the guide to running the bot on Windows here: http://lizardwiki.gewt.net/wiki/LizardBot/Windows
the guide to running the bot on Windows here: http://lizardwiki.dyndns.org/wiki/LizardBot/Windows
[RECOMMENDED]
$setGecos: Set the bot's gecos, or real name. String. Default: bot
$setIdent: Set the bot's username if no ident reply is sent. String. Default: bot
Expand Down Expand Up @@ -83,7 +83,7 @@
TRUE to use PCREs.
$setInsultUsers: Throw insults like the Bard! When set to true, allows use of the insult command.
See the documentation at http://lizardwiki.gewt.net/wiki/LizardBot/Docs for details.
See the documentation at http://lizardwiki.dyndns.org/wiki/LizardBot/Docs for details.
Boolean, default TRUE.
$setEnableDelays: In favor of potentially reducing processor usage, DISABLES the stream select code that
Expand Down Expand Up @@ -201,7 +201,7 @@
# BLOCK #
#################################################
$setIdent = "LizardBot";
$setGecos = "PHP-LizardBot v{$version} - http://lizardwiki.gewt.net/wiki/LizardBot";
$setGecos = "PHP-LizardBot v{$version} - http://lizardwiki.dyndns.org/wiki/LizardBot";
$setTrigger = "@";

#################################################
Expand All @@ -220,8 +220,8 @@
# BLOCK #
#################################################
##CTCP Configuration
$setCTCPVersion = "PHP-LizardBot (Written in PHP 5 Procedural by FastLizard4 and the LizardBot Development Team) v{$version} http://lizardwiki.gewt.net/wiki/LizardBot";
$setCTCPUserinfo = "PHP-LizardBot: Boldly Going Where No Bot Has Gone Before! - http://lizardwiki.gewt.net/wiki/LizardBot";
$setCTCPVersion = "PHP-LizardBot (Written in PHP 5 Procedural by FastLizard4 and the LizardBot Development Team) v{$version} http://lizardwiki.dyndns.org/wiki/LizardBot";
$setCTCPUserinfo = "PHP-LizardBot: Boldly Going Where No Bot Has Gone Before! - http://lizardwiki.dyndns.org/wiki/LizardBot";
$setUnknownCTCP_RE = NULL; //Not yet implemented

$setNoBolds = FALSE;
Expand Down
23 changes: 12 additions & 11 deletions lizardbot.php
Expand Up @@ -56,7 +56,7 @@
|_____||_______| |________||_| |_| |_| \__\ |____/

PHP-LizardBot: IRC bot developed by FastLizard4 (who else?) and the LizardBot Development Team
Version 6.3.0.2b (major.minor.build.revision) BETA
Version 6.3.0.3b (major.minor.build.revision) BETA
Licensed under the Creative Commons GNU General Public License 2.0 (GPL)
For licensing details, contact me or read this page:
http://creativecommons.org/licenses/GPL/2.0/
Expand Down Expand Up @@ -92,8 +92,8 @@
<?php
//Check for updates
echo "{$c_yellow}Checking for updates...\r\n";
$version = "6.3.0.2b";
$upfp = @fopen('http://lizardwiki.gewt.net/w/index.php?title=LizardBot/Latest&action=raw', 'r');
$version = "6.3.0.3b";
$upfp = @fopen('http://lizardwiki.dyndns.org/w/index.php?title=LizardBot/Latest&action=raw', 'r');
$data = @fgets($upfp);
@fclose($upfp);
if(!$data) {
Expand Down Expand Up @@ -265,7 +265,8 @@ private function get_say($input, $tag='font'){
'/www\.outwar\.com/i' => 'would you please GO AWAY with that outwar rubbish!',
'/^god$/i' => 'Sometimes the garbage disposal gods demand a spoon.',
'/stupid bot[!?.]*$/i' => '%n: Stupid human.',
'/fail bot[!?.]*$/i' => '%n: Fail human.'
'/fail bot[!?.]*$/i' => '%n: Fail human.',
'/good bot[!?.]*$/i' => chr(1).'ACTION purrs at %n'.chr(1)
);

$fishAresponses = array
Expand Down Expand Up @@ -993,7 +994,7 @@ function SIGINT() {
sleep(1);
fwrite($ircc, "PRIVMSG $c :$target2: Extensions: Pandorabot by Ttech (PHP-5-OOP)\r\n");
sleep(2);*/
fwrite($ircc, "PRIVMSG $c :$target2: For help and copyrights, see http://lizardwiki.gewt.net/wiki/LizardBot\r\n");
fwrite($ircc, "PRIVMSG $c :$target2: For help and copyrights, see http://lizardwiki.dyndns.org/wiki/LizardBot\r\n");
echo "
-!- $target2 requested {$setTrigger}info\n
";
Expand Down Expand Up @@ -1225,8 +1226,8 @@ function SIGINT() {
if($d[3] == "{$setTrigger}update" && hasPriv('*')) {
$cmdcount++;
echo "Checking for updates...\r\n";
$version = "6.3.0.2b";
$upfp = @fopen('http://lizardwiki.gewt.net/w/index.php?title=LizardBot/Latest&action=raw', 'r');
$version = "6.3.0.3b";
$upfp = @fopen('http://lizardwiki.dyndns.org/w/index.php?title=LizardBot/Latest&action=raw', 'r');
$data = @fgets($upfp);
@fclose($upfp);
$target = explode("!", $d[0]);
Expand All @@ -1244,7 +1245,7 @@ function SIGINT() {
if($data == $version) {
$output = "LizardBot is up-to-date";
} else {
$output = "LizardBot version {$data} is available. Please update, or get details at http://lizardwiki.gewt.net/wiki/LizardBot/CL#latest";
$output = "LizardBot version {$data} is available. Please update, or get details at http://lizardwiki.dyndns.org/wiki/LizardBot/CL#latest";
}
fwrite($ircc, "PRIVMSG $c :" . $e . $output . "\r\n");
echo "-!- PRIVMSG $c :" . $e . $output . "\r\n";
Expand Down Expand Up @@ -1464,7 +1465,7 @@ function SIGINT() {
unset($tnick);
unset($stopExecution);
}
if($d[3] == "{$setTrigger}editcount" && hasPriv('*')) {
/* if($d[3] == "{$setTrigger}editcount" && hasPriv('*')) {
$cmdcount++;
$error = FALSE;
/************************
Expand Down Expand Up @@ -1531,7 +1532,7 @@ function SIGINT() {
fwrite($ircc, "PRIVMSG $c :" . $e . $data . "\r\n");
echo "-!- PRIVMSG $c :" . $e . $data . "\r\n";
unset($error, $editcount, $data, $soxtoolURL, $soxtool, $soxtoolOut, $c, $e, $target);
}
} */
if($d[3] == "{$setTrigger}insult" && hasPriv('insult') && $setInsultUsers) {
$insultcount++;
$cmdcount++;
Expand Down Expand Up @@ -1583,7 +1584,7 @@ function SIGINT() {
$uptime['current'] = gmdate('H:i:s', time() - $uptime['start']);
$uptime['current'] = $uptime['days'] . ' days, ' . $uptime['current'];
$php_os = PHP_OS;
$data = "I am bot {$nick}. Software: PHP-LizardBot v{$version} (http://lizardwiki.gewt.net/wiki/LizardBot) on OS {$php_os}; Uptime: {$uptime['current']}; I have been used a total of {$totalcount} times (Commands: {$cmdcount} [Of which, {$insultcount} were insult commands], Server pings: {$pingcount}, Recognized CTCPs: {$ctcpcount}, AI calls: {$aicount}, Fishbot calls: {$fishcount}).";
$data = "I am bot {$nick}. Software: PHP-LizardBot v{$version} (http://lizardwiki.dyndns.org/wiki/LizardBot) on OS {$php_os}; Uptime: {$uptime['current']}; I have been used a total of {$totalcount} times (Commands: {$cmdcount} [Of which, {$insultcount} were insult commands], Server pings: {$pingcount}, Recognized CTCPs: {$ctcpcount}, AI calls: {$aicount}, Fishbot calls: {$fishcount}).";
$target = explode("!", $d[0]);
$e = $target[0] . ": ";
if($d[2] == $nick) {
Expand Down

0 comments on commit d5572d9

Please sign in to comment.