Have the fahrenheit temperature in parenthesis
This commit is contained in:
parent
563c43724b
commit
dcbf3617a3
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue