Punkt und Komma gsub entfernt (weil Fehler)

Pattern Fehler gefixt
This commit is contained in:
Akamaru 2015-11-21 19:25:17 +01:00
parent 4211935a44
commit 47ce5b8b38

View File

@ -19,8 +19,8 @@ local function get_condition_symbol(weather, n)
end
local function get_temp(weather, n)
local day = string.gsub(round(weather.list[n].temp.day, 1), "%.", "%,")
local night = string.gsub(round(weather.list[n].temp.night, 1), "%.", "%,")
local day = (round(weather.list[n].temp.day, 1))
local night = (round(weather.list[n].temp.night, 1))
local condition = weather.list[n].weather[1].description
return '☀️ '..day..'°C | 🌙 '..night..'°C | '..condition
end
@ -82,7 +82,7 @@ local function run(msg, matches)
city = matches[2]
end
if not tonumber(matches[1]) and matches[1] ~= '!/orecast' then
if not tonumber(matches[1]) and matches[1] ~= '/forecast' then
city = matches[1]
end