User Control Panel
Advertisements

HELP US, HELP YOU!

Another Andromeda Problem!

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl
View unanswered posts
Author Message
Flava
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 35

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Sun Jan 25, 2004 1:10 pm    Post subject: Reply with quote

I'm a bit dumb when it comes to Andromeda/Perl so please could you help me. I have set up my bot (screenname, password, admins, mods.etc) and then I get this error:

Code:
C:\andromeda>perl andromeda.pl<br />First time config...<br />Enter your bots username: ******@hotmail.com<br />Enter your bots password: *****<br />Enter your bots command char: (!):<br />Enter your bots Admins seperated by , : *****@hotmail.com, *****@hotm<br />ail.com<br />Enter your bots Mods seperated by , : *****@hotmail.com<br />Select a brain:<br />    1.) basic - Basic Brain with no features. Echos user input.<br />(1)1<br />Starting now...<br />Can't locate object method "set_handler" via package "MSN" at MSN/Bot.pm line 65<br />, <STDIN> line 6.<br />


The error message is "Can't locate object method "set_handler" via package "MSN" at MSN/Bot.pm line 65
, line 6."

Can anybody help me?
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 25, 2004 1:22 pm    Post subject: Reply with quote

that is very simple, i think its ansawed in the andromeda post, have a look beacause i cant rember. but i think its to do with the msn.pm
Back to top
Flava
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 35

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Sun Jan 25, 2004 1:26 pm    Post subject: Reply with quote

What andromeda post? :blink:
Back to top
zander
God Like
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Sun Jan 25, 2004 1:39 pm    Post subject: Reply with quote

hey flava you have an error in *lazy* bot.pm thats located at andromeda/lib/msn/bot go to the line that it says copy it and paste it onto here please
Back to top
Flava
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 35

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Sun Jan 25, 2004 1:45 pm    Post subject: Reply with quote

Im not sure which is line 65 but I think it is in here somewhere:

Code:
 my $q = "Select a brain:\n";<br />        my $i = 0;<br />        my $t = {};<br />        foreach my $brain (keys %{$self->{brains}})<br />        {<br />            $i++;<br />            $t->{$i} = $brain;<br />            $q .= "     $i.) $brain - $self->{brains}->{$brain}->{Description}\n";<br />        }<br />        $self->{settings}->{brain} = $t->{prompt($q,1)};<br />    }<br /><br />    print "Starting now...\n";<br />    <br />    $self->save_settings();<br />    <br />    my $msn = MSN->new(Handle => $self->{settings}->{Handle},Password => $self->{settings}->{Password} ,Debug => $debug);<br /><br />    $msn->set_handler(Log => sub {shift;print(@_,"\n");});<br />    $msn->set_handler(Message => \&Message);<br />    


Also, my mate Snolar has exactly the same problem.
Back to top
Flava
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 35

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Sun Jan 25, 2004 2:47 pm    Post subject: Reply with quote

I have tried replacing the bot.pm and msn.pm files but nothing seems to work. Seems no matter what I do, when I fix a problem, another problem just comes up.. :S
Please help me! Sad
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Sun Jan 25, 2004 5:33 pm    Post subject: Reply with quote

Did you download Event\Handler.pm and do you have the newest MSN.pm (show us the version info it prints)
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group