mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Some Changes
This commit is contained in:
@@ -31,7 +31,8 @@ module.exports = class ForecastCommand 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 info = response.body.query.results.channel;
|
||||
let data = info.item.forecast;
|
||||
|
||||
Reference in New Issue
Block a user