added Bot class (simple method dummy) & fixed some bugs
[PHP-P10.git] / main.php
index a217c69ac107432074582bd6cde4b50004584067..5dcf7d93b9dcd0843925f9ccfb6237bd7dcdda32 100644 (file)
--- a/main.php
+++ b/main.php
@@ -26,6 +26,7 @@
  *
  */
 require_once("Uplink/Uplink.class.php");
+require_once("ModCMD/ModCMD.class.php");
 
 //basicly here is nothing, yet :D
 $uplink = new Uplink();
@@ -33,6 +34,8 @@ $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();
 
 while(true) {