Some Changes

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 20:51:12 +00:00
parent 06e1cd9c50
commit 06c3ca3b45
9 changed files with 9 additions and 56 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ module.exports = class WeatherCommand extends commando.Command {
let response = await request
.get('https://query.yahooapis.com/v1/public/yql')
.query({
q: `select * from weather.forecast where u='f' AND woeid in (select woeid from geo.places(1) where text="${locationToSearch}")&format=json`
q: `select * from weather.forecast where u='f' AND woeid in (select woeid from geo.places(1) where text="${locationToSearch}")`,
format: 'json'
});
let data = response.body.query.results.channel;
const embed = new Discord.RichEmbed()