improve weather command

This commit is contained in:
Your Name 2023-01-31 13:30:38 +02:00
parent ae43e88e1f
commit de86e959fa
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ client.on("PRIVMSG", async (msg) => {
await client
.say(
msg.channelName,
`Weather for ${splitted[2]} Temp: ${data?.current_condition[0]?.temp_C}°C Feels like: ${data?.current_condition[0]?.FeelsLikeC}°C`
`Weather for ${splitted[2]}
Status: ${data?.current_condition[0]?.weatherDesc[0]?.value}
Temp: ${data?.current_condition[0]?.temp_C}°C
Feels like: ${data?.current_condition[0]?.FeelsLikeC}°C`
)
.catch((err) => console.log(err));
break;