From 73dd8774334496f9e0837a16862ef56ba49a7d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ma=C5=84czak?= <56172798+jakubmanczak@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:03:37 +0200 Subject: [PATCH] finalise ping cmd --- src/cmds/ping.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/cmds/ping.js b/src/cmds/ping.js index 5c6fac4..6e6bede 100644 --- a/src/cmds/ping.js +++ b/src/cmds/ping.js @@ -3,11 +3,16 @@ module.exports = { execute(msg, args, cfg) { const pingembed = { color: cfg.hexBlue, - title: `ping`, timestamp: new Date(), - description: `Pong! ${Date.now() - msg.createdTimestamp}`, + footer: { + text: `Komenda wywołana przez ${msg.author.tag}`, + icon_url: cfg.iconurl, + }, + title: 'Pong!', + description: `Ping jednostronny wynosi ${ + Date.now() - msg.createdTimestamp + }`, }; - msg.channel.send(`pong`); msg.channel.send({ embeds: [pingembed] }); }, };