From c8a48bd93522af331c7e67958e2468d99113b486 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 2 Apr 2017 04:12:56 +0000 Subject: [PATCH] And that --- commands/search/weather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/weather.js b/commands/search/weather.js index 1a2c98f7..8af43c3a 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -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)