Advertisement
Guest User

Untitled

a guest
May 30th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?PHP
  2. define('MAINDIR',dirname(__FILE__) . '/');// you can specify MAINDIR . path to file if not loading properly.
  3. require "TinychatBot/TinychatBotServer.class.php";
  4. ini_set("memory_limit","128M");//haha you need what?
  5. set_time_limit(0);//haha this is infinite timeout fag.
  6. date_default_timezone_set("America/Chicago"); // For all time() uses, otherwise it goes mad.
  7. //original code by notorious, extended by appleton, refactored by jamesalot,
  8. //tweaked and refactored some more by legend. FUCK YOU BUNCH OF DRUNKS
  9. error_log("-- " . "starting server");
  10. //**SETTINGS** cmd prompt php TinychatBot.php username password botname roomname tempmods
  11. $siteurl = "http://tinychat.com/";
  12. $server = new ChatClient();
  13. $server->runServer($siteurl, $argv[1],$argv[2],$argv[3], "$argv[4]",array("$argv[1]"));
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement