Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-04-16 01:25:42 +00:00
parent 8074fe51bd
commit fb9f723f1c
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class ForecastCommand extends Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
}
const location = encodeURIComponent(args.locationQ);
const location = args.locationQ;
try {
const response = await snekfetch
.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="${location}")&format=json`);