|
| Author |
Message |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Fri Jan 21, 2005 8:32 pm Post subject: |
|
|
This is the final update to MSN 2.0. A simple echo bot is included.
This update includes a few bug fixes and one new method. Check the change log in the docs directory for more info.
Main changes
sendmsg has been REMOVED, use sendMessage instead
getContact is a new method that will get all the known information for a given contact, as a hashref. Example:
| Code: | | my $info = $msn->getContact( 'email@domain.com' );<br /><br /> print( 'Email=' . $info->{'Email'} . "\n" );<br /> print( 'Friendly=' . $info->{'Friendly'} . "\n" );<br /> print( 'Status=' . $info->{'Status'} . "\n" );<br /> print( 'CID=' . $info->{'CID'} . "\n" );<br /> print( 'ClientInfo=' . $info->{'ClientInfo'} . "\n" );<br /> print( 'AL=' . $info->{'AL'} . "\n" );<br /> print( 'FL=' . $info->{'FL'} . "\n" );<br /> print( 'BL=' . $info->{'BL'} . "\n" );<br /> print( 'RL=' . $info->{'RL'} . "\n" );<br /> |
Note that the ClientInfo field is a hashref itself. Refer to the docs for how to use that. Also, if this contact is not on any of your contact lists, the data will be empty.
IMPORTANT: If you are using an existing template, please wait for it to be updated before using this new MSN.pm.
When you run your bot, the first line of your script should say:
| Code: | | MSN 2.0 (01/21/2005) Rev: 84 - Checksum: 60068-NS18164-SB8878 |
Checksum: 60068-NS18164-SB8878
This is a value that shows that you are running an unedited version of the modules, which will help us determine any problems you might have. When you have errors or bugs, including the first line (most importantly the Checksum) will help us debug things for you faster. |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Fri Jan 21, 2005 8:35 pm Post subject: |
|
|
A beta version of MSN 2.5 with reworked P2P code and file send/receive is expected in about a week! Stay tuned.  |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Fri Jan 21, 2005 9:06 pm Post subject: |
|
|
| wow, thats a really useful feature...great idea..i knew it could be done before but was very complicated... |
|
| Back to top |
|
 |
Addict Not Yet a God

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Fri Jan 21, 2005 11:44 pm Post subject: |
|
|
Great! Works awsome! |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Sat Jan 22, 2005 9:59 am Post subject: |
|
|
| *dances and waits* |
|
| Back to top |
|
 |
Gavin God Like

Joined: 15 Mar 2004 Posts: 661 Location: Manchester, UK
    
|
Posted: Sat Jan 22, 2005 1:39 pm Post subject: |
|
|
Cool! How are you doing these updates so fast? Can't wait for the new version.  _________________ MSN: gavin [at] gavinbrittain [dot] co [dot] uk
E-Portfolio: www.gavinbrittain.co.uk (New version comming soon) |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Sat Jan 22, 2005 1:47 pm Post subject: |
|
|
Isn't mattaustin doing the same thing in his new msn.pm?
Who shall win! |
|
| Back to top |
|
 |
JTW God Like

Joined: 07 Mar 2004 Posts: 579 Location: Maidstone
  votes: 4
|
Posted: Sat Jan 22, 2005 1:53 pm Post subject: |
|
|
I belive mattaustin is making the code for the msn.pm but im not sure _________________ "Help us, Help you" - BotDepot |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sat Jan 22, 2005 2:14 pm Post subject: |
|
|
Yes, Matt is giving his code to Mojave to implement in the MSN.pm, I think. If Mojave is releasing his own though, I don't think Matt will just to compete . _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sat Jan 22, 2005 7:19 pm Post subject: |
|
|
There's nothing wrong with a little competition.  |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Sun Jan 23, 2005 4:27 am Post subject: |
|
|
Edit: Problem solved by eric, thanks!
I am trying to design a bot template, so I started by looking at the basic echobot included with msn2.
Upon tring to sign in with the echo bot i received this:
MSN 2.0 (01/21/2005) Rev: 84 - Checksum: 60068-NS18164-SB8878
| Quote: | SERVER ERROR : Authentication Error: No response from Passport server ERROR : Trying to print 'PNG ' on an undefined socket Caller trace: 0: MSN::error (MSN/Notification.pm, line 102) 1: MSN::Notification::error (MSN/Notification.pm, line 189) 2: MSN::Notification::_send (MSN/Notification.pm, line 519) 3: MSN::Notification::ping (MSN.pm, line 669) 4: MSN::do_one_loop (MSN\echobot.pl, line 44)
|
Any idea's? |
|
| Back to top |
|
 |
farkie God Like

Joined: 15 Nov 2003 Posts: 673
   
|
Posted: Fri Jan 28, 2005 5:12 pm Post subject: |
|
|
: MSN::do_one_loop (MSN\echobot.pl, line 44)
whats on that line? |
|
| Back to top |
|
 |
Max Member

Joined: 03 Dec 2003 Posts: 129
   
|
Posted: Sat Mar 05, 2005 1:51 pm Post subject: |
|
|
Im having problems running my bot, I run it and this happens (This is after installing the new MSN.pm)
| Code: | | MSN 2.0 (01/21/2005) Rev: 84 - Checksum: 60068-NS18164-SB8878<br /><br />Odd number of elements in anonymous hash at C:/Perl/lib/MSN.pm line 45, <DATA> l<br />ine 1.<br />SERVER ERROR : Badly Formated CVR : 1 |
On line 45 there is:
Please Help,
Thanks ~ Max |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sat Mar 05, 2005 2:03 pm Post subject: |
|
|
| Are you passing a username and pass wene creating the MSN object? |
|
| Back to top |
|
 |
farkie God Like

Joined: 15 Nov 2003 Posts: 673
   
|
Posted: Sat Mar 05, 2005 2:59 pm Post subject: |
|
|
Nah, dont think he is.
Make sure you have updated your code, alot of things have changed in this version
EDIT (Farkie): Eric, Please can you change the signature thing? the box makes you scroll to see peoples signatures.. just looks funny.. |
|
| Back to top |
|
 |
|