X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=main.php;h=7cfe0fc1c2cadc79a0447359fe9113a0887ea1e1;hb=412e324075de1312fbc5f49b735180b46cdff82c;hp=a217c69ac107432074582bd6cde4b50004584067;hpb=7ee52d8a44c982d62baecf92cea6b266e8c2eb26;p=PHP-P10.git diff --git a/main.php b/main.php index a217c69..7cfe0fc 100644 --- a/main.php +++ b/main.php @@ -26,6 +26,8 @@ * */ require_once("Uplink/Uplink.class.php"); +require_once("ModCMD/ModCMD.class.php"); +require_once("BotLoader/BotLoader.class.php"); //basicly here is nothing, yet :D $uplink = new Uplink(); @@ -33,8 +35,13 @@ $uplink->setUplinkHost("192.168.2.103", 4401); $uplink->setUplinkServer(5, "PHP.TestNet", "very_weak_password", "Test Server"); $uplink->setValidateServer("test.localhost", "very_weak_password"); +$uplink->setEventHandler(ModCMD::getEventHandler()); + $uplink->initialize(); +$botloader = new BotLoader($uplink); +$botloader->loadBots(); + while(true) { $uplink->loop(); }