Fix wrong temperature label

This commit is contained in:
SileNce5k 2024-10-04 03:53:56 +02:00
parent a59e2381fb
commit 6ee51970fc
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -23,7 +23,7 @@ module.exports = {
case "F": case "F":
if (args[2].toUpperCase() === "C") { if (args[2].toUpperCase() === "C") {
const celsius = ((parseFloat(args[0]) - 32) * 5 / 9).toFixed(2); const celsius = ((parseFloat(args[0]) - 32) * 5 / 9).toFixed(2);
sendText = `${args[0]}°C is ${celsius}°F`; sendText = `${args[0]}°F is ${celsius}°C`;
} else { } else {
sendText = "Can only convert to fahrenheit from celsius"; sendText = "Can only convert to fahrenheit from celsius";
} }