rendered paste body<?php/** * Nuwani-v2 Bot Framework * * This file is part of the Nuwani v2 Bot Framework, a simple set of PHP classes which allow * you to set-up and run your own bot. It features advanced, PHP-5.3 based syntax for * optimal performance and security. * * Author: Peter Beverloo * peter@lvp-media.com */error_reporting (E_ALL);include 'Sources/Singleton.php';include 'Sources/ModuleBase.php';include 'Sources/Configuration.php';include 'Sources/BotManager.php';include 'Sources/BotGroup.php';include 'Sources/Network.php';include 'Sources/Modules.php';include 'Sources/Memory.php';include 'Sources/Socket.php';include 'Sources/Timer.php';include 'Sources/Bot.php';include 'config.php';define ("NL", "\n");define ("RNL", "\r\n");set_time_limit (0);if (function_exists ('xdebug_disable')) xdebug_disable ();if (!extension_loaded ('runkit') && file_exists ('runkit.so')) dl ('runkit.so');Configuration :: getInstance () -> register ($aConfiguration);NetworkManager :: getInstance () -> Initialise ($aConfiguration ['Networks']);$pBotManager = BotManager :: getInstance ();$pBotManager -> Initialise ($aConfiguration ['Bots']);Memory :: Initialise ();$pModManager = ModuleManager :: getInstance ();$g_bRun = true ;while ($g_bRun){ $pBotManager -> process (); $pModManager -> onTick (); Timer :: process (); Memory :: process (); usleep (50000);}?>