• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

COTI Poller

robject

SOC-14 10K
Admin Award
Marquis
ATTACHMENT: cotipoller.pl

I wrote it because I didn't want to pathologically check COTI all the time. I just wanted to know when someone posted something.

It requires LWP::Simple and Data:: Dumper -- which are pretty common.

The default polling interval is 300 seconds, although you can specify your own interval on the command line.

It caches found threads and their last post times, so when you stop and re-start the script it takes off from where it left.

I should write this in Rakudo Perl.


A recent sample:

Code:
------------------------------------------------------------------------------------------------
03/24 19:19:53  Play By Post - In Ch | Leitz      | TDW:1416 Season Two Premiere "Husbands&
03/24 19:34:57  In My Traveller Univ | timerover5 | Social Standing and cost of living
03/24 19:55:02  TAS Opinion Polls    | flykiller  | What is your take on the Zhodani?
03/24 19:55:02  Classic Traveller    | samuelvss  | Using Navigation in place of jump tapes
03/24 21:10:30  Classic Traveller    | Marchand   | Using Navigation in place of jump tapes
03/24 23:50:20  Adventurers          | timerover5 | What would a wildlife-refuge factor patron n
03/24 23:50:20  In My Traveller Univ | timerover5 | Social Standing and cost of living
 

Attachments

Last edited:
Back
Top