Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Net::OSCAR qw(:standard); %signon = ( screenname => 'myscreenname', password => 'mypassword', local_ip => 'myip', ); $recipient = "myfriend"; $message = "mymessage"; sub signon_done { print "signed on\n"; $online = 1; } $oscar = Net::OSCAR->new(); $oscar->set_callback_signon_done(\&signon_done); $oscar->signon(%signon); while(1) { $oscar->do_one_loop(); if ($online) { $oscar->send_im($recipient, $message); sleep(5); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OSCAR - a bot that will send and receive?
by marcussen (Pilgrim) on Dec 08, 2008 at 00:35 UTC | |
by Anonymous Monk on Dec 08, 2008 at 01:36 UTC | |
by kennethk (Abbot) on Dec 08, 2008 at 02:36 UTC | |
|
Re: Net::OSCAR - a bot that will send and receive?
by otto (Beadle) on Dec 08, 2008 at 05:28 UTC |