Imugr Link for Yahoo Weather

This commit is contained in:
Daniel Odendahl Jr
2017-05-04 11:36:03 +00:00
parent 0ada2e43b4
commit 8d8d642a85
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class ForecastCommand extends Command {
const forecasts = body.query.results.channel.item.forecast;
const embed = new RichEmbed()
.setColor(0x0000FF)
.setAuthor(body.query.results.channel.title, 'http://media.idownloadblog.com/wp-content/uploads/2013/12/yahoo-weather-213x220.png')
.setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png')
.setURL(body.query.results.channel.link)
.setTimestamp()
.addField(`**${forecasts[0].day} - ${forecasts[0].date}:**`,
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class WeatherCommand extends 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="${query}")&format=json`);
const embed = new RichEmbed()
.setColor(0x0000FF)
.setAuthor(body.query.results.channel.title, 'http://media.idownloadblog.com/wp-content/uploads/2013/12/yahoo-weather-213x220.png')
.setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png')
.setURL(body.query.results.channel.link)
.setTimestamp()
.addField('**City:**',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "18.0.1",
"version": "18.0.2",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {