mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +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 snekfetch = require('snekfetch');
|
||||||
const { list } = require('../../structures/Util');
|
const { list } = require('../../structures/Util');
|
||||||
const { OWM_KEY } = process.env;
|
const { OWM_KEY } = process.env;
|
||||||
const types = ['zip', 'name', 'lat/lon'];
|
const types = ['zip', 'name'];
|
||||||
|
|
||||||
module.exports = class WeatherCommand extends Command {
|
module.exports = class WeatherCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -41,8 +41,6 @@ module.exports = class WeatherCommand extends Command {
|
|||||||
.query({
|
.query({
|
||||||
q: type === 'name' ? query : '',
|
q: type === 'name' ? query : '',
|
||||||
zip: type === 'zip' ? query : '',
|
zip: type === 'zip' ? query : '',
|
||||||
lat: type === 'lat/lon' ? query.split('/')[0] : '',
|
|
||||||
lon: type === 'lat/lon' ? query.split('/')[1] : '',
|
|
||||||
units: 'metric',
|
units: 'metric',
|
||||||
appid: OWM_KEY
|
appid: OWM_KEY
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user