diff --git a/plugins/forecast.lua b/plugins/forecast.lua index 8e9ee23..ac587de 100644 --- a/plugins/forecast.lua +++ b/plugins/forecast.lua @@ -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