3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 11:12:42 +01:00

Plugins/Wttr: add observation time to default option

This commit is contained in:
Pragmatic Software 2022-07-03 07:22:33 -07:00
parent 87eff496e9
commit 0cf80092a7
2 changed files with 4 additions and 4 deletions

View File

@ -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}) {

View File

@ -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 {}