[SimBot-commits] CVS: simbot ChangeLog,1.75,1.76 INSTALL,1.22,1.23 TODO,1.15,1.16 simbot.pl,1.122,1.
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-07-19 02:33:40
|
Update of /cvsroot/simbot/simbot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15606 Modified Files: ChangeLog INSTALL TODO simbot.pl Log Message: No more Geo::METAR! &got_metar still needs a rewrite or at least a cleaning. Relative times given when possible now. Index: ChangeLog =================================================================== RCS file: /cvsroot/simbot/simbot/ChangeLog,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -p -r1.75 -r1.76 --- ChangeLog 9 May 2005 02:02:35 -0000 1.75 +++ ChangeLog 19 Jul 2005 02:33:28 -0000 1.76 @@ -1,3 +1,9 @@ +Version 1.0 alpha: (18 Jul 2005) + * plugins/weather.pl: + - Added our own METAR parser. With luck, this will be more sane. + - If we can figure out a valid time for the report, we tell the user how + old the report is instead of the UTC time. + Version 1.0 alpha: (08 May 2005) * plugins/time.pl: - New plugin! Index: INSTALL =================================================================== RCS file: /cvsroot/simbot/simbot/INSTALL,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -p -r1.22 -r1.23 --- INSTALL 9 May 2005 02:06:34 -0000 1.22 +++ INSTALL 19 Jul 2005 02:33:28 -0000 1.23 @@ -28,9 +28,6 @@ features in SimBot: DBD::SQLite: For sqlite-logger.pl, weather.pl, rss.pl - Geo::METAR: - For weather.pl - XML::Simple: For weather.pl @@ -63,7 +60,7 @@ most recent version of each module, type For example: - install POE::Component::IRC Encode Geo::METAR LWP + install POE::Component::IRC Encode LWP CPAN will do what it needs to install the necessary package and you'll be on your way. If you are unsure how to answer the questions it asks, it is Index: TODO =================================================================== RCS file: /cvsroot/simbot/simbot/TODO,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -p -r1.15 -r1.16 --- TODO 4 May 2005 21:36:58 -0000 1.15 +++ TODO 19 Jul 2005 02:33:28 -0000 1.16 @@ -24,7 +24,6 @@ Targets for Beyond 1.0 ====================== - Use POE better, blocking less and using more events. - RSS plugin desperately needs to handle all links/guids changing. -- Weather plugin needs to stop using Geo::METAR. - Make sentence generation bonus __BEGIN/__END as sentence gets longer to reduce the chance of (but not obliterate) excessively long sentences. - Redefine Plugin API using POE or related Perl 6 functionality. - Allow the user to specify a custom data directory. Index: simbot.pl =================================================================== RCS file: /cvsroot/simbot/simbot/simbot.pl,v retrieving revision 1.122 retrieving revision 1.123 diff -u -d -p -r1.122 -r1.123 --- simbot.pl 18 Jul 2005 05:06:45 -0000 1.122 +++ simbot.pl 19 Jul 2005 02:33:28 -0000 1.123 @@ -526,7 +526,12 @@ sub numberize { # TIMEAGO: Returns a string of how long ago something happened sub timeago { my ($seconds, $minutes, $hours, $days, $weeks, $years); - $seconds = time - $_[0]; + my $now = time; + + $seconds = $now - $_[0]; + if($_[0] < $now) { + warn "Trying to use timeago on a time in the future! Now is ${now}, Then is $_[0]"; + } if($seconds >= 60) { $minutes = int $seconds / 60; $seconds %= 60; |