|
| Author |
Message |
Flava Newbie

Joined: 24 Jan 2004 Posts: 35
   
|
Posted: Sun Jan 25, 2004 1:10 pm Post subject: |
|
|
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

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Jan 25, 2004 1:22 pm Post subject: |
|
|
| 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

Joined: 24 Jan 2004 Posts: 35
   
|
Posted: Sun Jan 25, 2004 1:26 pm Post subject: |
|
|
| What andromeda post? :blink: |
|
| Back to top |
|
 |
zander God Like

Joined: 14 Jan 2004 Posts: 540 Location: england
 
|
Posted: Sun Jan 25, 2004 1:39 pm Post subject: |
|
|
| 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

Joined: 24 Jan 2004 Posts: 35
   
|
Posted: Sun Jan 25, 2004 1:45 pm Post subject: |
|
|
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

Joined: 24 Jan 2004 Posts: 35
   
|
Posted: Sun Jan 25, 2004 2:47 pm Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Sun Jan 25, 2004 5:33 pm Post subject: |
|
|
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 |
|
 |
|