User Control Panel
Advertisements

HELP US, HELP YOU!

PSM and File Trans working..

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules
View unanswered posts
Author Message
SilverBullet2009
Newbie
Newbie


Joined: 18 Oct 2005
Posts: 1
Location: Ohio, USA
Reputation: 6.7Reputation: 6.7Reputation: 6.7Reputation: 6.7Reputation: 6.7Reputation: 6.7

PostPosted: Wed Oct 19, 2005 8:52 pm    Post subject: PSM and File Trans working.. Reply with quote

Hey Guys..Its me Rodderz (new account..) Anyways..there are some people out there that can't get PSM (personal message) and File Transfers (for msn msger..) to work..You can download the documents needed to make this work on Matt Austin's site msndev..Here is the download link http://msndev.com/MSNP11+PSM.zip. Ok so, if your using a Sub bot, its simple to make the PSM work..All you have to do is something similar to this
Code:
sub psm{
   my ($bot,$self, $user, $name, $msg, $color) = @_;
   
$bot->{msn}->setPSM("$msg","",0,"","");
return "You changed the bot's PSM to $msg";
}
And for elsif this is a sample of what to do, for your bot..You might have to change some of elsif statement
Code:
elsif( $message =~ /^!psm\s+(.*)$/i )                
   {
$msn->setPSM("$1","",0,"","");
$self->sendMessage("You changed the bots PSM to $1");
   }
File Transfer is easier then PSM to get it to work Smile For a sub bot you have to do something like this
Code:
sub send{
   my ($bot, $self, $user, $name, $msg, $color) = @_;
   
$self->{P2P}->sendFile('filenamehere');
For an elsif bot you have to do something similar to this
Code:
elsif ( $message eq "!send" )                
   {
$self->{P2P}->sendFile('filenamehere');
   }
Thats all..I hope it helped the people that didn't know how to make these things work! Have fun Very Happy
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Oct 20, 2005 12:47 am    Post subject: Reply with quote

I didn't know that version of the module did file transfers.

But doesn't it have a problem with fonts? When I tried putting it on my bot, all its fonts were like default black Arial kinda stuff. Well that and I think there was some repetitive warning somewhere too, which were both reasons for me degrading to the other latest version of the module.

_________________
Current Site (2008) http://www.cuvou.com/
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: Thu Oct 20, 2005 1:23 am    Post subject: Reply with quote

That version of Matt's code is beta. As you can tell from $self->{P2P}->sendFile();. It was released for testing, I think..


...Samy is my hero.
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: Thu Oct 20, 2005 6:57 am    Post subject: Reply with quote

Quote:
When I tried putting it on my bot, all its fonts were like default black Arial kinda stuff


That's when you send a dot or other non-latin1 character without a suffixing \n.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
JTW
God Like
God Like


Joined: 07 Mar 2004
Posts: 579
Location: Maidstone
Reputation: 67.1
votes: 4

PostPosted: Thu Oct 20, 2005 10:52 am    Post subject: Reply with quote

Code:
Use of uninitialized value in pattern match (m//) at Lib/MSN/Notification.pm lin
e 982.
SERVER ERROR : unknown error : 1


The only thing i have done is add Mattaustins MSN search sub in the notification.pm

_________________
"Help us, Help you" - BotDepot
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol modules All times are GMT
Page 1 of 1

 



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