jpk236 has asked for the wisdom of the Perl Monks concerning the following question:

I have a use for this module; but a pretty specific one. Let me first start off by saying I'm not looking for an AIM bot. I need a script which runs, sends 1 instant message to 1 user, then ends. That's all.

I've tried lots of different things with this module -- but haven't really seem to gotten anywhere. Any one have any suggestions on what the code would look like?

Thanks in advance.

- Justin

Retitled by davido from 'Net::AIM'.

Replies are listed 'Best First'.
Re: Net::Aim: How to sent single message
by castaway (Parson) on Jan 27, 2005 at 12:10 UTC
    I'll cheat, go look at Net::OSCAR instead, which has a nicer interface, IMO. All you need is the logon stuff in the example, plus the send_im method, and you're done.

    C.

      Yep, but you'll need to be careful about how often the script runs. If you log in/out X times in Y minutes, your account is blocked from logging in any more for Z minutes. (Where X, Y, and Z are numbers I can't recall at this time.)
        Thanks for the help guys! Also, to answer your question, I believe you're blocked for 10 minutes. That actually is an important factoid, which is why I'll have the signon stuff in a sub-routine which runs as the script starts -- then just have the send_im whatnot do its thing within the script as many times as it needs. Thanks again!

        - Justin