From a73bd60373c6e6952a75521972877326775103d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ma=C5=84czak?= <56172798+jakubmanczak@users.noreply.github.com> Date: Tue, 28 Sep 2021 21:02:35 +0200 Subject: [PATCH] add .regulamin cmd --- src/cmds/regulamin.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cmds/regulamin.js diff --git a/src/cmds/regulamin.js b/src/cmds/regulamin.js new file mode 100644 index 0000000..c1cb48d --- /dev/null +++ b/src/cmds/regulamin.js @@ -0,0 +1,17 @@ +module.exports = { + name: 'regulamin', + execute(cl, msg) { + const embed = { + color: cl.cfg.hexBlue, + timestamp: new Date(), + footer: { + text: `Komenda wywołana przez ${msg.author.tag}`, + icon_url: cl.cfg.iconurl, + }, + title: 'Regulamin', + description: 'Regulamin naszego serwera składa się z tego, co następuje:', + fields: cl.cfg.embedFields.regulamin, + }; + msg.channel.send({ embeds: [embed] }); + }, +};