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

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 .= "$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 .= "Cloud cover: $c->{'cloudcover'}%; Visibility: $c->{'visibility'}km; ";
$result .= "Humidity: $c->{'humidity'}%; Precip: $c->{'precipMM'}mm; Pressure: $c->{'pressure'}hPa; UV Index: $c->{'uvIndex'}"; $result .= "Wind: $c->{'windspeedKmph'}kph/$c->{'windspeedMiles'}mph $c->{'winddirDegree'}°/$c->{'winddir16Point'}; ";
} else { $result .= "Humidity: $c->{'humidity'}%; Precip: $c->{'precipMM'}mm; Pressure: $c->{'pressure'}hPa; UV Index: $c->{'uvIndex'}";
$result .= $conditions;
}
$result .= ";\n"; $result .= ";\n";
} }

View File

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