Posted: Wed Oct 19, 2005 8:52 pm Post subject: PSM and File Trans working..
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 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
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/
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. ]