Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Private messages with Bot::BasicBot

by senőr_biggles (Novice)
on Apr 04, 2007 at 02:03 UTC ( #608179=perlquestion: print w/replies, xml ) Need Help??

senőr_biggles has asked for the wisdom of the Perl Monks concerning the following question:

I've hit a wall with Bot::BasicBot, which is that I don't seem to be able to send private messages. I know that when I receive one the passed hashref will contain address=>'msg', but if I send a message with say(address=>'msg') it just puts the person's name in front of the message, but it is public. Thanks for any help.

Replies are listed 'Best First'.
Re: Private messages with Bot::BasicBot
by revdiablo (Prior) on Apr 04, 2007 at 02:34 UTC

    See the fine manual for details, but it looks like you'll want to set 'who' to the nickname, and set 'channel' to 'msg'. It further indicates that the 'address' argument is optional, and only applicable to public messages.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://608179]
Approved by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-09-17 01:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found