mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Plugins/Wttr: add observation time to default option
This commit is contained in:
parent
87eff496e9
commit
0cf80092a7
@ -158,7 +158,7 @@ sub get_wttr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (@$options == 1 and $options->[0] eq 'default') {
|
if (@$options == 1 and $options->[0] eq 'default') {
|
||||||
push @$options, 'chances';
|
push @$options, ('chances', 'time');
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $option (@$order) {
|
foreach my $option (@$order) {
|
||||||
@ -300,7 +300,7 @@ sub get_wttr {
|
|||||||
|
|
||||||
when ('cloudcover') { $result .= "Cloud cover: $c->{'cloudcover'}%;\n"; }
|
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') {
|
when ('location') {
|
||||||
if (exists $wttr->{nearest_area}) {
|
if (exists $wttr->{nearest_area}) {
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4548,
|
BUILD_REVISION => 4549,
|
||||||
BUILD_DATE => "2022-06-29",
|
BUILD_DATE => "2022-07-03",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user