vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - AIM Controller (AIM Bot For Vb) (https://vborg.vbsupport.ru/showthread.php?t=131151)

Farjad 11-16-2006 08:18 PM

I am trying to install XML::RSS::Parser, via WHM, it stops automatically at:
Quote:

CPAN: LWP::UserAgent loaded ok

Fetching with LWP:

http://cpan.erlbaum.net/authors/id/S...ath-1.4.tar.gz

Out of memory!
Any help :( ?

Jafo232 11-17-2006 12:30 AM

Seems your server is running out of memory I guess? I have never seen that error when I use the CPAN module.

Perhaps if you use a different cpan mirror when downloading?

Farjad 11-17-2006 12:54 AM

Quote:

Originally Posted by Jafo232 (Post 1119047)
Seems your server is running out of memory I guess? I have never seen that error when I use the CPAN module.

Perhaps if you use a different cpan mirror when downloading?

How do I do that .. sorry i am totally new in linux.. so I use it directly from WHM.. and I do have 4GB Ram on this server.. I am confused.

Jafo232 11-17-2006 02:52 AM

Quote:

Originally Posted by Farjad (Post 1119067)
How do I do that .. sorry i am totally new in linux.. so I use it directly from WHM.. and I do have 4GB Ram on this server.. I am confused.

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.

Farjad 11-17-2006 06:40 PM

Quote:

Originally Posted by Jafo232 (Post 1119120)
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.

Jafo232 12-31-2006 04:43 PM

#shutdown turns the bot off

As for your bot shutting off after you log off, use nohup. Example:

nohup /path/to/executable &

Remember the pid # it returns (after you hit return twice) in case you need to kill the process.

Make sure your AIM API key is correct.

Mupetz 01-01-2007 12:25 PM

Don't forget Google Talk :)

Jafo232 01-01-2007 07:49 PM

I will not be adding any other IM services to this bot.

Distance 01-09-2007 05:23 PM

oh right ... damn no Msn then..

bye

AzzidReign 01-10-2007 03:52 AM

Wow, this sounds pretty awesome!


All times are GMT. The time now is 02:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01041 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete