mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-03 07:24:47 +00:00
[AB-91] adding direct link to open weather map in the output of the weather command
This commit is contained in:
@@ -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??>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Weather in ${locationName}, ${countryKey}: ${weatherIcon} ${weatherKey} - ${weatherDescription}
|
Weather in [${locationName}, ${countryKey}](${weatherLocationLink}): ${weatherIcon} ${weatherKey} - ${weatherDescription}
|
||||||
Reference in New Issue
Block a user