improve weather command
This commit is contained in:
parent
ae43e88e1f
commit
de86e959fa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue