From a8a00c851242143ff5f5cf41f355a0a84b1e880b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 6 Sep 2017 16:42:16 +0000 Subject: [PATCH] Lat/Lon too buggy --- commands/search/weather.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/search/weather.js b/commands/search/weather.js index b597dfa1..7b6d852c 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -3,7 +3,7 @@ const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { list } = require('../../structures/Util'); const { OWM_KEY } = process.env; -const types = ['zip', 'name', 'lat/lon']; +const types = ['zip', 'name']; module.exports = class WeatherCommand extends Command { constructor(client) { @@ -41,8 +41,6 @@ module.exports = class WeatherCommand extends Command { .query({ q: type === 'name' ? query : '', zip: type === 'zip' ? query : '', - lat: type === 'lat/lon' ? query.split('/')[0] : '', - lon: type === 'lat/lon' ? query.split('/')[1] : '', units: 'metric', appid: OWM_KEY });