BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: mookie on November 19, 2005, 11:31:18 am

Title: Webcast plugin
Post by: mookie on November 19, 2005, 11:31:18 am
Hi all,

Is there a function for webcast in Bebot, or is there a plugin floating around somewhere? I am asking because we were using IGN for awile and our member online/offline status was sent to our webpage, updated by the bot via webcast.php.

How hard would this be to port over to Bebot?

Thanks
Title: Webcast plugin
Post by: Khalem on November 19, 2005, 01:05:06 pm
I havent looked at IGN's webcast, however offhand it should be fairly easy to accomplish for BeBot.

The simplest method would probably be to just create an online database table and then access said table from the website.
Im sure someone is up for the task.

If you happen to have the webcast source code, feel free to post it as it will whoever takes this on a better idea of how that works.
Title: Webcast plugin
Post by: mookie on November 19, 2005, 10:37:04 pm
ok this is what i have.  The webside script just takes the user on/off information from the bot and then reads the user data from the xml script on the funcom user page.

--- Clip from IGN bot ---


if(!stristr($checkconfig,"$"."webcast"))
      {echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                     :: INSTALLING WEBCAST online list ::\n\n\n\n\n\n\n\n\n\n\n\n\n";pause(3);
      $checkconfig=str_replace('$'.'IGNname','$webcast = "";'."\r\n".'$webcastpass = "";'."\r\n".'$'.'IGNname',$checkconfig);
      $doupgrade = @fopen ($origfile."config.php","w");
      $fpu = fwrite($doupgrade,$checkconfig);echo $screenblank;
      fclose($doupgrade);
      }


///25/// loading the botname.config file and setting new globals and ingame setup variables.
      $readconfig="";
      $checkconfig="";
      $doupgrade="";
      include($origfile."config.php");
      $setup["webcast"]=$webcast;
      $setup["webcastpass"]=$webcastpass;

** Config.php just sets the values of $webcast (IE: Website address/file) and $webcastpass is the password.



///number/// handles auto-sending of online list to guildsite if chosen in setup.
      global $webcast,$webcastpass;
      if(!empty($webcast)){global   $cast;$cast++;if($cast>1000){$cast=0;
      $weblist=dirlist('logstamp/',"","",0,0,0,0);
      if(is_array($weblist)){$i=0;$result=Array();$result[0]="(start)";
      foreach($weblist as $k => $v){
      if(strlen(rawurlencode($result[$i]))>4000){$i++;}
      $result[$i].=str_replace(".logon"," on ",str_replace(".logoff"," off ",$k)).$v."\r\n";}
      //console("[IGN WEBCAST] :: uploading online lists to webserver ::\r\n");
      foreach($result as $v){$v=rawurlencode($v);
      $webresult=fileget ($webcast."?upload=".$v."&pass=".$webcastpass);}
      if($webresult==""){$webresult="no server or script found";
      console("[IGN WEBCAST] :: ".$webresult." ::\r\n");}}}}
SimplePortal 2.3.7 © 2008-2024, SimplePortal