smort embed.js big thonking 🔥 🔥

This commit is contained in:
2021-09-28 20:39:12 +02:00
parent c2074d6207
commit 36eba7e0f2
5 changed files with 147 additions and 290 deletions

View File

@@ -1,18 +1,18 @@
module.exports = {
name: 'ping',
execute(msg, args, cfg) {
const pingembed = {
color: cfg.hexBlue,
execute(cl, msg) {
const embed = {
color: cl.cfg.hexBlue,
timestamp: new Date(),
footer: {
text: `Komenda wywołana przez ${msg.author.tag}`,
icon_url: cfg.iconurl,
icon_url: cl.cfg.iconurl,
},
title: 'Pong!',
description: `Ping jednostronny wynosi ${
Date.now() - msg.createdTimestamp
}ms.`,
};
msg.channel.send({ embeds: [pingembed] });
msg.channel.send({ embeds: [embed] });
},
};