|
| Author |
Message |
PiersR Newbie

Joined: 20 Dec 2003 Posts: 43
   
|
Posted: Sun Nov 14, 2004 12:28 am Post subject: |
|
|
Hi, I decided to go with Mojaves solution of using the MSN 2 protocol.
The bot connects and replys to most commands (The others I simply need to update) But it sends no welcome message.
The error when i connect is:
| Code: | | SERVER ERROR : Empty event received from server : '' |
Thanks  |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sun Nov 14, 2004 12:37 am Post subject: |
|
|
| Hmm, you say it connects and responds to commands, but then you say you get an error on connect? So it doesn't connect? Did you install the SSL updates? |
|
| Back to top |
|
 |
Addict Not Yet a God

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Sun Nov 14, 2004 5:46 am Post subject: |
|
|
Most problems with MSN 2.0 is that you don't have the SSL updates installed.  |
|
| Back to top |
|
 |
Art God Like

Joined: 25 May 2004 Posts: 551 Location: Amsterdam, Holland
    
|
Posted: Sun Nov 14, 2004 9:14 am Post subject: |
|
|
And firewalls.  |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Nov 14, 2004 10:10 am Post subject: |
|
|
For the welcome:
At the top of access.pl change all the set_handlers to setHandler |
|
| Back to top |
|
 |
Gavin God Like

Joined: 15 Mar 2004 Posts: 661 Location: Manchester, UK
    
|
Posted: Sun Nov 14, 2004 11:09 am Post subject: |
|
|
Hmm i get that error to, I have had it for ages. It dosen't affect how the bot runs, or at least not with my bot... _________________ MSN: gavin [at] gavinbrittain [dot] co [dot] uk
E-Portfolio: www.gavinbrittain.co.uk (New version comming soon) |
|
| Back to top |
|
 |
PiersR Newbie

Joined: 20 Dec 2003 Posts: 43
   
|
Posted: Sun Nov 14, 2004 1:57 pm Post subject: |
|
|
I dont believe its the SSL updates, they are installed.
What I mean is the bot connects perfectly, but upon connecting it gives one error. (Above) This doesnt stop the bot from functioning however, it does not send the welcome message.
Thanks |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Nov 14, 2004 2:13 pm Post subject: |
|
|
| Hmm it shouldnt be too bad then, but an we se bot.pl near the top please. |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Nov 14, 2004 2:21 pm Post subject: |
|
|
have you changed your handlers like i said ?
set_handler should be setHandler |
|
| Back to top |
|
 |
PiersR Newbie

Joined: 20 Dec 2003 Posts: 43
   
|
Posted: Sun Nov 14, 2004 3:13 pm Post subject: |
|
|
Yes Mat, done that.
Dazzy here's the top of bot.pl
| Code: | | #!/usr/bin/perl<br /><br />use lib './Lib';<br />use warnings;<br />use LWP::Simple;<br />use File::Basename;<br />use Data::Dumper;<br />use Getopt::Long; |
At the bottom of bot.pl it calls Online.pl and sets the global parameter $version (If its called that) So i think the problems are in Online.pl in the message sub
Now I've been running through the bot commands to see which function and not (To see what i need to update) and another bug, which is along the same lines as the Welcome message is when users are added to the conversation. (For example, in chat)
Usually the bot would say "Welcome to the conversation ...." but it doesnt. So i've looked for the Subs relating to these and they are : subUpdateBuddies (Welcome msg) and sub Joined. Both of these are obviously related to when a user opens a socket, so i think the sub, sub Join might have some involvement.
Danke. |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Nov 14, 2004 3:51 pm Post subject: |
|
|
Read the readme:
| Quote: | Chat_Member_Joined (SwitchBoard object, contact email, contact friendly name) Chat_Member_Here (SwitchBoard object, contact email, contact friendly name) Chat_Room_Updated (SwitchBoard object) Answer (SwitchBoard object) Chat_Member_Left (SwitchBoard object, contact email) Chat_Room_Closed (SwitchBoard object) Typing (SwitchBoard object, contact email, contact friendly name) FileReceiveInvitation (SwitchBoard object, contact email, contact friendly name, cookie, file, file size) Message (SwitchBoard object, contact email, contact friendly name, message) |
So change your
| Code: | | $msn->set_handler(Update_Chat_Buddies => \&UpdateBuddies); |
To:
| Code: | | $msn->setHandler(Chat_Member_Joined => \&UpdateBuddies); |
Etc... |
|
| Back to top |
|
 |
PiersR Newbie

Joined: 20 Dec 2003 Posts: 43
   
|
Posted: Sun Nov 14, 2004 4:27 pm Post subject: |
|
|
Damnit i'm an idiot.
I wont bother explaining why I didn't try that in the first place. Anyway, I decided to use echobot.pl and start building the bot again. At least then its not off a template and I should learn more.
Thanks everyone who helped...  |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Nov 14, 2004 4:52 pm Post subject: |
|
|
No prob,
But readmes are there for a reason USE them. READ them. |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sun Nov 14, 2004 5:41 pm Post subject: |
|
|
I believe that error is due to one of the contact lists being empty, most likely the Block list. Once the bot is online, type:
| Quote: | | !perl $msn->Block('test@test.com'); |
Replace ! with your command character. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sun Nov 14, 2004 6:35 pm Post subject: |
|
|
QUOTE(PiersR @ Nov 13 2004, 04:28 PM) Hi, I decided to go with Mojaves solution of using the MSN 2 protocol. The bot connects and replys to most commands (The others I simply need to update) But it sends no welcome message. The error when i connect is: | Code: | | SERVER ERROR : Empty event received from server : '' |
Thanks | When you start an MSN bot which uses MSN2.0, you'll most likely get two SERVER ERRORs, one about authenticating and the one you listed, empty event. As you said, these don't stop the bot from functioning properly. I don't know why they occur, you can safely ignore them for now. |