[AB-91] adding direct link to open weather map in the output of the weather command

This commit is contained in:
Sheldan
2023-03-19 10:55:36 +01:00
parent c6aa854aa3
commit a3d125b67d
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
<#assign weatherIcon>${weatherMap[mainWeather]!""}</#assign> <#assign weatherIcon>${weatherMap[mainWeather]!""}</#assign>
<#assign weatherKey=mainWeather!""> <#assign weatherKey=mainWeather!"">
<#assign weatherDescription=description!""> <#assign weatherDescription=description!"">
<#assign weatherLocationLink>https://openweathermap.org/city/${locationId?c}</#assign>
"description": "<@safe_include "openWeatherMap_command_response_description"/>", "description": "<@safe_include "openWeatherMap_command_response_description"/>",
"fields": [ "fields": [
<#if temperature??> <#if temperature??>

View File

@@ -1 +1 @@
Weather in ${locationName}, ${countryKey}: ${weatherIcon} ${weatherKey} - ${weatherDescription} Weather in [${locationName}, ${countryKey}](${weatherLocationLink}): ${weatherIcon} ${weatherKey} - ${weatherDescription}