User Control Panel
Advertisements

HELP US, HELP YOU!

MSN 2 problems
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules
View unanswered posts
Author Message
PiersR
Newbie
Newbie


Joined: 20 Dec 2003
Posts: 43

Reputation: 29.8Reputation: 29.8Reputation: 29.8

PostPosted: Sun Nov 14, 2004 12:28 am    Post subject: Reply with quote

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 Smile
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sun Nov 14, 2004 12:37 am    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Sun Nov 14, 2004 5:46 am    Post subject: Reply with quote

Most problems with MSN 2.0 is that you don't have the SSL updates installed. Smile
Back to top
Art
God Like
God Like


Joined: 25 May 2004
Posts: 551
Location: Amsterdam, Holland
Reputation: 35.2Reputation: 35.2Reputation: 35.2Reputation: 35.2

PostPosted: Sun Nov 14, 2004 9:14 am    Post subject: Reply with quote

And firewalls. Smile
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Nov 14, 2004 10:10 am    Post subject: Reply with quote

For the welcome:

At the top of access.pl change all the set_handlers to setHandler
Back to top
Gavin
God Like
God Like


Joined: 15 Mar 2004
Posts: 661
Location: Manchester, UK
Reputation: 36.2Reputation: 36.2Reputation: 36.2Reputation: 36.2

PostPosted: Sun Nov 14, 2004 11:09 am    Post subject: Reply with quote

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
Newbie


Joined: 20 Dec 2003
Posts: 43

Reputation: 29.8Reputation: 29.8Reputation: 29.8

PostPosted: Sun Nov 14, 2004 1:57 pm    Post subject: Reply with quote

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
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Nov 14, 2004 2:13 pm    Post subject: Reply with quote

Hmm it shouldnt be too bad then, but an we se bot.pl near the top please.
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Nov 14, 2004 2:21 pm    Post subject: Reply with quote

have you changed your handlers like i said ?

set_handler should be setHandler
Back to top
PiersR
Newbie
Newbie


Joined: 20 Dec 2003
Posts: 43

Reputation: 29.8Reputation: 29.8Reputation: 29.8

PostPosted: Sun Nov 14, 2004 3:13 pm    Post subject: Reply with quote

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
Code:
&Online($version);


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
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Nov 14, 2004 3:51 pm    Post subject: Reply with quote

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
Newbie


Joined: 20 Dec 2003
Posts: 43

Reputation: 29.8Reputation: 29.8Reputation: 29.8

PostPosted: Sun Nov 14, 2004 4:27 pm    Post subject: Reply with quote

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... Razz
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Nov 14, 2004 4:52 pm    Post subject: Reply with quote

No prob,

But readmes are there for a reason USE them. READ them.
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Nov 14, 2004 5:41 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sun Nov 14, 2004 6:35 pm    Post subject: Reply with quote

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 Smile

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



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