Subject: IRC Bot Serverfehler 500
Hi leute, wie im betreff schon steht liefert mir das botscript einen serverfehler 500.
meine config:
meine config:
<?php
/*
PHPIrc_bot - an IRC bot writen in PHP
Copyright (C) 2006 Thorben Gartmann
2009 Janek Thomaschewski
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
include("bot.php");
$bot = new IRC_Bot;
// Config for the bot
$bot->server = "irc.codingszene.de"; // irc server host
$bot->port = "6667"; // irc server port
$bot->nickname = "php4youbotguest"; // ircbot nickname
$nick = $bot->nickname;
$channel = "#codingszene"; // main channel
$c = "$"; // prefix for commands to the bot
// Some config for hooks
$owners = array("nickname1", "nickname2"); // nicknames of the bot admins
$mode["nickname1"] = "o"; // mode the bot should give specific nicknames when using $mode
$mode["nickname2"] = "o";
$quitmsg = "Cya leute!! >>http://www.php4you.de/<<";// message when parting a channel
$log_format = "d.m H:i";
$info["owner"] = implode(" & ", $owners);
$info["website"] = "www.php4you.de";
$info["channel"] = $channel . " @ irc.euirc.net";
$info["version"] = "PHPIrc_bot 0.3b1";
$info["commands"] = $c . "coffee, " . $c . "info, " . $c . "echo, " . $c . "html";
$info["admin_commands"] = "$c" . "quit, ". $c . "rejoin, " . $c . "nick, " . $c . "php, " . $c . "mode [nick]";
$info["notice"] = "Kein Kommerz und keine Beleidigungen im channel! Auch kein sonstiger unfug!";
// do not change from here
$dir = "bot_functions/";
$dirh = opendir($dir);
while ($file = readdir($dirh)) {
if (substr($file, -4) == ".php") {
include_once($dir . $file);
}
}
closedir($dirh);
$bot->run();
?>
/*
PHPIrc_bot - an IRC bot writen in PHP
Copyright (C) 2006 Thorben Gartmann
2009 Janek Thomaschewski
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
include("bot.php");
$bot = new IRC_Bot;
// Config for the bot
$bot->server = "irc.codingszene.de"; // irc server host
$bot->port = "6667"; // irc server port
$bot->nickname = "php4youbotguest"; // ircbot nickname
$nick = $bot->nickname;
$channel = "#codingszene"; // main channel
$c = "$"; // prefix for commands to the bot
// Some config for hooks
$owners = array("nickname1", "nickname2"); // nicknames of the bot admins
$mode["nickname1"] = "o"; // mode the bot should give specific nicknames when using $mode
$mode["nickname2"] = "o";
$quitmsg = "Cya leute!! >>http://www.php4you.de/<<";// message when parting a channel
$log_format = "d.m H:i";
$info["owner"] = implode(" & ", $owners);
$info["website"] = "www.php4you.de";
$info["channel"] = $channel . " @ irc.euirc.net";
$info["version"] = "PHPIrc_bot 0.3b1";
$info["commands"] = $c . "coffee, " . $c . "info, " . $c . "echo, " . $c . "html";
$info["admin_commands"] = "$c" . "quit, ". $c . "rejoin, " . $c . "nick, " . $c . "php, " . $c . "mode [nick]";
$info["notice"] = "Kein Kommerz und keine Beleidigungen im channel! Auch kein sonstiger unfug!";
// do not change from here
$dir = "bot_functions/";
$dirh = opendir($dir);
while ($file = readdir($dirh)) {
if (substr($file, -4) == ".php") {
include_once($dir . $file);
}
}
closedir($dirh);
$bot->run();
?>
Aileen
Show profile
Link to this post