Quote:
Originally Posted by Jafo232
Hmm, depends on your server. However, with 4gb of ram, you should not run out of memory.. Perhaps you should speak to your server admin?
Also, you may want to contact the authors of the module, and maybe the CPAN module too..
The only reason why you need this module is to run the latest.cgi action script. You can comment out the use statement in the use_once.pl file and just delete the latest.cgi script from the custom_user directory until you get the module installed.
|
Actually, I own this server.. I got this cause my site is growing big.. currently with 100k members.. BTW.. Ill ask my datacenter
EDIT:
Now I don't think I need XML::RSS:Parser.. I decided to recode the script latest.cgi to :
Code:
## Include this at the top of all action scripts.
if (!CONTROLLER) { print "Cannot be executed directly"; exit; }
my $db = &dbconnect;
my $dbh=$db->prepare("SELECT * FROM " . $dbprefix . "thread ORDER by threadid DESC LIMIT 20");
$dbh->execute() or print "$! Cannot execute query DBI: $DBI::errstr";
## ($threads) = $dbh->fetchrow_array();
while (@rows = $dbh->fetchrow()) {
($threads .= "<a href='$bburl/showthread.php?t=".$rows[0]."'>".$rows[1]."</a>\n")
}
$dbh->finish();
$oscar->send_im($who, "$threads");
($threads = "")
EDIT:
One last question:
when i start the bot I get
Code:
Can't get http://api.oscar.aol.com/SOA/key=MYAPIKEYHERE/resource-lists/users/*anonymous*/presence/~~/resource-lists/list[name="users"]/entry[@uri="user:MuftoBot"] -- 500 Internal error in validating key.VB Version Out Of Date!
There was an error in messages.cgi. Returned was Can't call method "finish" on an undefined value at (eval 46) line 30, <FH> line 64.
and Resource temporarily unavailableLoaded 191 users
.................You are now signed on to AOL Instant Messenger.
.........basic OSCAR service: Unknown extended info request
also, how do I start this without being logged in SHELL ? .. as when I exit the shell it automatically goes offline.
and, how can i ban/block users who curse X number of times?
finally, how about #exit , that would turn off the bot , useful at times at high loads.