Skip to content

Commit

Permalink
Add country and provided by to weather
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jan 11, 2025
1 parent 902b250 commit 641e859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/Information/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Weather extends Command {

const embed = new EmbedBuilder()
.setColor(msg.settings.embedColor)
.setTitle(`Weather in: ${JSONObj.name}`)
.setTitle(`Weather in: ${JSONObj.name}, ${JSONObj.sys.country}`)
.addFields([
{ name: 'Temperature: ', value: `${JSONObj.main.temp}°F \n${metricTemperature}°C` },
{ name: 'Feels Like: ', value: `${JSONObj.main.feels_like}°F \n${metricFeelsLike}°C` },
Expand All @@ -55,7 +55,8 @@ class Weather extends Command {
`**Sky info:** ${JSONObj.weather[0].description} \n\n**Wind Info:** ${
JSONObj.wind.speed + 'mph'
} (${metricWindSpeed})`,
);
)
.setFooter({ text: 'Weather provided by OpenWeather' });

return msg.channel.send({ embeds: [embed] });
});
Expand Down

0 comments on commit 641e859

Please sign in to comment.