Plugins/Wttr: add -conditions to default option

This commit is contained in:
Pragmatic Software 2022-05-22 17:12:57 -07:00
parent 799c9e68c7
commit d003a326aa
2 changed files with 7 additions and 9 deletions

View File

@ -196,13 +196,11 @@ sub get_wttr {
}
}
if ($sep eq '') {
$result .= "Cloud cover: $c->{'cloudcover'}%; Visibility: $c->{'visibility'}km; ";
$result .= "Wind: $c->{'windspeedKmph'}kph/$c->{'windspeedMiles'}mph $c->{'winddirDegree'}°/$c->{'winddir16Point'}; ";
$result .= "Humidity: $c->{'humidity'}%; Precip: $c->{'precipMM'}mm; Pressure: $c->{'pressure'}hPa; UV Index: $c->{'uvIndex'}";
} else {
$result .= $conditions;
}
$result .= "$conditions; " if length $sep;
$result .= "Cloud cover: $c->{'cloudcover'}%; Visibility: $c->{'visibility'}km; ";
$result .= "Wind: $c->{'windspeedKmph'}kph/$c->{'windspeedMiles'}mph $c->{'winddirDegree'}°/$c->{'winddir16Point'}; ";
$result .= "Humidity: $c->{'humidity'}%; Precip: $c->{'precipMM'}mm; Pressure: $c->{'pressure'}hPa; UV Index: $c->{'uvIndex'}";
$result .= ";\n";
}

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 => 4534,
BUILD_DATE => "2022-05-01",
BUILD_REVISION => 4536,
BUILD_DATE => "2022-05-22",
};
sub initialize {}