mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Lat/Lon too buggy
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user