Punkt und Komma gsub entfernt (weil Fehler)
Pattern Fehler gefixt
This commit is contained in:
parent
4211935a44
commit
47ce5b8b38
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user