From 0cf80092a7477da5a0b3a85d0a72b76418df09e3 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 3 Jul 2022 07:22:33 -0700 Subject: [PATCH] Plugins/Wttr: add observation time to default option --- lib/PBot/Plugin/Wttr.pm | 4 ++-- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PBot/Plugin/Wttr.pm b/lib/PBot/Plugin/Wttr.pm index ef1d4c63..adde53a2 100644 --- a/lib/PBot/Plugin/Wttr.pm +++ b/lib/PBot/Plugin/Wttr.pm @@ -158,7 +158,7 @@ sub get_wttr { } if (@$options == 1 and $options->[0] eq 'default') { - push @$options, 'chances'; + push @$options, ('chances', 'time'); } foreach my $option (@$order) { @@ -300,7 +300,7 @@ sub get_wttr { when ('cloudcover') { $result .= "Cloud cover: $c->{'cloudcover'}%;\n"; } - when ('time') { $result .= "Observation time: $c->{'localObsDateTime'};\n"; } + when ('time') { $result .= "Observed: $c->{'localObsDateTime'};\n"; } when ('location') { if (exists $wttr->{nearest_area}) { diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 0ad3751d..094f8ef9 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4548, - BUILD_DATE => "2022-06-29", + BUILD_REVISION => 4549, + BUILD_DATE => "2022-07-03", }; sub initialize {}