Move right parenthesis to the correct place

This commit is contained in:
SileNce5k 2023-12-07 12:22:15 +01:00
parent f5714cb90d
commit 5c80c5cd05
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -23,7 +23,7 @@ module.exports = {
if(weather?.success){
let tempInCelsius = weather.weather.match(tempRegex)[0];
let tempInFahrenheit = Math.round(tempInCelsius * 1.8 + 32);
weather.weather = weather.weather.replace("°C", `°C (${tempInFahrenheit})°F`)
weather.weather = weather.weather.replace("°C", `°C (${tempInFahrenheit}°F)`)
}
message.channel.send(weather.weather);
}