This commit is contained in:
Daniel Odendahl Jr
2017-04-02 04:12:56 +00:00
parent 912f932c8f
commit c8a48bd935
+2 -2
View File
@@ -29,8 +29,8 @@ module.exports = class WeatherCommand extends commando.Command {
.get(`https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where u='f' AND woeid in (select woeid from geo.places(1) where text="${locationToSearch}")&format=json`);
const embed = new Discord.RichEmbed()
.setColor(0x0000FF)
.setAuthor(response.body.query.results.title, 'http://media.idownloadblog.com/wp-content/uploads/2013/12/yahoo-weather-213x220.png')
.setURL(response.body.query.results.link)
.setAuthor(response.body.query.results.channel.title, 'http://media.idownloadblog.com/wp-content/uploads/2013/12/yahoo-weather-213x220.png')
.setURL(response.body.query.results.channel.link)
.setTimestamp()
.addField('**City:**',
response.body.query.results.channel.location.city, true)