Lat/Lon too buggy

This commit is contained in:
Daniel Odendahl Jr
2017-09-06 16:42:16 +00:00
parent d647b6230d
commit a8a00c8512
+1 -3
View File
@@ -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
});