renamed the "test" embed
This commit is contained in:
parent
881a855cdc
commit
7b3bedc08c
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
const { Command } = require('discord.js-commando');
|
const { Command } = require('discord.js-commando');
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
const snekfetch = require('snekfetch');
|
const snekfetch = require('snekfetch');
|
||||||
const { openweatherAPI } = require('./config.json');
|
const { openweatherAPI } = require('../../config.json');
|
||||||
module.exports = class WeatherCommand extends Command {
|
module.exports = class WeatherCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
|
@ -24,7 +24,7 @@ module.exports = class WeatherCommand extends Command {
|
||||||
if (!body.main.temp) {
|
if (!body.main.temp) {
|
||||||
return message.say(`No results found for **${city}**`);
|
return message.say(`No results found for **${city}**`);
|
||||||
}
|
}
|
||||||
const test = new Discord.RichEmbed()
|
const weatherEmbed = new Discord.RichEmbed()
|
||||||
.setColor("#ff9900")
|
.setColor("#ff9900")
|
||||||
.setTitle(body.name + ' current weather')
|
.setTitle(body.name + ' current weather')
|
||||||
.setDescription(body.main.temp + '°c')
|
.setDescription(body.main.temp + '°c')
|
||||||
|
@ -32,6 +32,6 @@ module.exports = class WeatherCommand extends Command {
|
||||||
.addField('Temp max', body.main.temp_max + '°c')
|
.addField('Temp max', body.main.temp_max + '°c')
|
||||||
|
|
||||||
|
|
||||||
message.say(test);
|
message.say(weatherEmbed);
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue