Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php
- <?php
- require("cbot.php");
- if (empty($argv[1]))
- {
- die("Usage: bot2bot <start phrase>\n");
- }
- $bots = array(new CBot(), new CBOt());
- /*$k = 1;
- while($k < $argc){
- $resp = $resp $argv[$k];
- $k ;
- }*/
- $resp = $argv[1];
- $bots[1]->say($resp, false);
- $cbot = -1;
- while (true)
- {
- $cbot ;
- if ($cbot == 2) $cbot = 0;
- echo "Bot ".($cbot 1).": $resp\n";
- $resp = $bots[$cbot]->say($resp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement