From cab8019bb1ce53bad22fe4f45664de07597d0bca Mon Sep 17 00:00:00 2001 From: Histmy Date: Thu, 15 Jul 2021 00:33:16 +0200 Subject: [PATCH] =?UTF-8?q?Added=20more=20po=C4=8Das=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/komStatic.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/komStatic.js b/modules/komStatic.js index 2d3da33..032dc40 100644 --- a/modules/komStatic.js +++ b/modules/komStatic.js @@ -1,5 +1,7 @@ // Sekce pro komandy, který jenom pošlou nějaký hovno bez a nevyžadují argumenty +const { MessageEmbed } = require("discord.js"); + const pomoc = JSON.parse(require('fs').readFileSync('addons/pomoc.json')); module.exports = { @@ -60,9 +62,19 @@ module.exports = { break; } + case "počasí": + case "pocasi": + const embed = new MessageEmbed() + .setTitle("Počasí") + .attachFiles("https://util.deadfish.cz/morepocasi/v/49.4348358/12.8147250/pocasi.png") + .setImage("attachment://pocasi.png"); + + mes.channel.send({ embed }); + break; + default: return false; - } + }; return true; } };