Hi,
I just got started trying to develop a program to simulate parliamentary procedure for my student organization, and I’ve begun by first trying to properly implement a basic trivia bot. The problem I’m running into here is that when I attempt to follow the readme and add the parameter to my index.php for the chat room (phpchatfree) not only does the bot not function it breaks the channel listing parameter.
[php]
<?php require_once dirname(__FILE__)."/src/phpfreechat.class.php"; $params = array(); $params["title"] = "MAL Chat Room"; $params['channels'] = array('testing channel','channel 2','default channel'); //defines channels $params['firstisadmin'] = false; $params["admins"] = array('iddeleted' => 'passworddeleted'); // see http://www.phpfreechat.net/forum/viewtopic.php?f=2&t=5921 for how to $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat $params["debug"] = false; $params['skip_proxies'] = array('censor'); $params['openlinknewwindow'] = true; $params["post_proxies"] = array('quiz'); // adds quizbot //$params["nick"] = "guest".rand(1,1000); // this has been disabled to force chat to ask for nickname instead of random assignment //$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;) $chat = new phpFreeChat( $params ); ?>[/php]
If I comment out line 16 everything works just fine, as far as I can tell. The person who wrote the bot has been gone for several years (http://www.phpfreechat.net/forum/viewtopic.php?f=4&t=4542) and I am just looking for some insight as to why this is and maybe how to fix it.
Thanks!