|
| Author |
Message |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Wed Nov 05, 2003 11:21 pm Post subject: |
|
|
Eric, I am having trouble using your protocol. My bot works fine the msnp9 that keenie made. When i wanted to try out yours, my installed it, and tryed out the demo and get this error
Start called Incorrectly
at first i thought it was my bot.pl then i modified it and it didnt work. So i ditched my bot.pl and used your fresh demo.pl right out of the zip that i downloaded from this site. I didnt change or delete anything except i entered my bots email and password handlers. I copied the Event Directory and demo.pl to C:\Perl\bin and placed the Msn Pm into C:\Perl\lib. I ran it and got the same error. So i reinstalled the SSL updates and it still gets the same error.
Sorry if i'm missing something really simple here. But i really want to get this protocol working.
Thanks in Advance. |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Wed Nov 05, 2003 11:31 pm Post subject: |
|
|
Well try a fresh start. Just grab the zip file and download and extract it into its own directory. Then modify the demo.pl file and run it.
Let me know how it goes. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Wed Nov 05, 2003 11:51 pm Post subject: |
|
|
Hey it worked lol
whacked it in its own directory.
all that messing around for nothing. Oh yeah i think the bot might of called you beacause i forgot to change the Connected Command. Must of been all that other crap mucking it up. Im talking to the bot now and if i just change the Message Command to my on_im sub will it work?
its just that i dont want to screw it up now its working. |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Thu Nov 06, 2003 1:27 am Post subject: |
|
|
k your protocol is great
just one thing i have change the message sub and i changed it to
on_im(@_); or something along the lines of that, i cant remember as im on a different system at the moment. Just one thing, i get this error
| Quote: | Can't call method "sendmsg" on an undefined value at C:/Perl/lib/handlers/on_im. pl line 48. |
I know exactly whats going on...
the problem is that my oN_im is actually in C:/Perl/<*lazy*>BIN*lazy*>/handlers not LIB.
How do i change this Eric? |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Thu Nov 06, 2003 4:05 am Post subject: |
|
|
You get that error when you aren't grabing the right parameters that are passed to the sub.. Make sure that you are using
| Code: | | sub on_om {<br /> my ($self, $victim, $name, $msg) = @_; |
at the top of your sub. Then whereever you awnt to use sendmsg you need to do $self->sendmsg.
Hope this helps you out! _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Thu Nov 06, 2003 4:27 am Post subject: |
|
|
Thanks for all this help, it got me to the next step except it is still referring to C:\Perl\Lib i ran the bot again with the special parameters and here is what it says:
| Quote: | Not a SCALAR reference at C:/Perl/lib/handlers/on_im.pl line 48.
|
its quite strange that it says Lib. If you want me to post my bot.pl or something just ask...  |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Thu Nov 06, 2003 4:30 am Post subject: |
|
|
It would help to see that line.  _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Thu Nov 06, 2003 8:26 am Post subject: |
|
|
Line 48
| Quote: | | $self->sendmsg("$reply"); |
The thing is on_im is in BIN not LIB and the console is always reffering to LIB
This is Getting very very strange.... :blink: :blink: |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Thu Nov 06, 2003 4:24 pm Post subject: |
|
|
Try moving that file to your bots directory. Perl searches for modules in a specific order. First it will search anything you
to include.
Then it searches the current directory. Then it will search the lib directory, followed by the site directory. I'm not sure it ever checks in the bin directory. So my guess is you have two copies and your not fixing the correct one at all. To avoid the confusion move the file into the same directory as your script so that you can be absolutly sure its using the right one.
Good Luck _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Fri Nov 07, 2003 12:55 am Post subject: |
|
|
Eric, Thank You so much for the Help. I now have everything Running. I did a big CleanUp of all my files, found an exrta handler file in the Lib Directory. I Deleted it ran the bot again. The bot replied with nothing. I did another clean up moving all my Config Files, Brain Files to a new directory. Rebooted, Ran the bot. Success. Everything like it used to be
This is a great new forum, keep up the good work.
If you need any help with it, moderators or info or anything let me know. I am willing to help |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
Posted: Fri Nov 07, 2003 3:03 am Post subject: |
|
|
| I just started not to put them there and i never will put them there again lol :ph34r: |
|
| Back to top |
|
 |
|