From 2c129c0e61747a217b0a524dbad64798f2f188d3 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 21:48:56 -0500 Subject: [PATCH] Simplify embed --- commands/ping.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/commands/ping.js b/commands/ping.js index e8a4ac0..bff4bc0 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -1,17 +1,19 @@ module.exports = { name: "ping", description: "Gets bot ping", - execute(client, message, args) { + execute(client, message) { + const {footerTxt} = require('../config.json'); + const embed = { "title": ":ping_pong: Ping", - "color": 9442302, - "fields": [ - { - "name": "Ping is " + client.ws.ping + " ms", - "value": "If this is more than 350ms there may be a problem!" - } - ] -}; -message.channel.send({ embed }); + "description": "**Pong!** " + client.ws.ping + " ms.", + "color": 9442302, + "footer": { + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + } +} + + message.channel.send({ embed }); } };