From 7f3b4e7671a7673041e89acfaad29c518b2e8107 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 17 Aug 2016 21:28:55 +0200 Subject: [PATCH] =?UTF-8?q?Icon=20f=C3=BCr=20"bew=C3=B6lkt=20in=20der=20Na?= =?UTF-8?q?cht"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/weather.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/otouto/plugins/weather.lua b/otouto/plugins/weather.lua index fe4d8dc..fcf444a 100644 --- a/otouto/plugins/weather.lua +++ b/otouto/plugins/weather.lua @@ -22,8 +22,8 @@ function weather:init(config) "^w$" } weather.doc = [[* -]]..config.cmd_pat..[[wetter*: Wetter für deinen Wohnort _(/location set [Ort])_ -*]]..config.cmd_pat..[[wetter* __: Wetter für diesen Ort +]]..config.cmd_pat..[[w*: Wetter für deinen Wohnort _(/location set [Ort])_ +*]]..config.cmd_pat..[[w* __: Wetter für diesen Ort ]] end @@ -176,8 +176,10 @@ function weather:inline_callback(inline_query, config, matches) local thumb_url = 'https://anditest.perseus.uberspace.de/inlineQuerys/weather/' if icon == 'clear-day' or icon == 'partly-cloudy-day' then thumb_url = thumb_url..'day.jpg' - elseif icon == 'clear-night' or icon == 'partly-cloudy-night' then + elseif icon == 'clear-night' then thumb_url = thumb_url..'night.jpg' + elseif icon == 'partly-cloudy-night' then + thumb_url = thumb_url..'cloudy-night.jpg' elseif icon == 'rain' then thumb_url = thumb_url..'rain.jpg' elseif icon == 'snow' then