From 7b3bedc08ca17bfa8cc76d3c235e5bf75986a258 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 26 Sep 2018 13:35:54 +0200 Subject: [PATCH] renamed the "test" embed --- commands/fun/weather.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/fun/weather.js b/commands/fun/weather.js index 9daa9ea5..4080a75e 100644 --- a/commands/fun/weather.js +++ b/commands/fun/weather.js @@ -1,7 +1,7 @@ const { Command } = require('discord.js-commando'); const Discord = require('discord.js'); const snekfetch = require('snekfetch'); -const { openweatherAPI } = require('./config.json'); +const { openweatherAPI } = require('../../config.json'); module.exports = class WeatherCommand extends Command { constructor(client) { super(client, { @@ -24,7 +24,7 @@ module.exports = class WeatherCommand extends Command { if (!body.main.temp) { return message.say(`No results found for **${city}**`); } - const test = new Discord.RichEmbed() + const weatherEmbed = new Discord.RichEmbed() .setColor("#ff9900") .setTitle(body.name + ' current weather') .setDescription(body.main.temp + '°c') @@ -32,6 +32,6 @@ module.exports = class WeatherCommand extends Command { .addField('Temp max', body.main.temp_max + '°c') - message.say(test); + message.say(weatherEmbed); } }; \ No newline at end of file