sjetej update

This commit is contained in:
Histmy 2021-07-15 01:57:48 +02:00
parent cab8019bb1
commit 475169d018

View File

@ -1,7 +1,5 @@
// Sekce pro komandy, který jenom pošlou nějaký hovno bez a nevyžadují argumenty // 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')); const pomoc = JSON.parse(require('fs').readFileSync('addons/pomoc.json'));
module.exports = { module.exports = {
@ -64,10 +62,13 @@ module.exports = {
case "počasí": case "počasí":
case "pocasi": case "pocasi":
const embed = new MessageEmbed() const embed = {
.setTitle("Počasí") title: "Počasí",
.attachFiles("https://util.deadfish.cz/morepocasi/v/49.4348358/12.8147250/pocasi.png") image: { url: "attachment://pocasi.png" }
.setImage("attachment://pocasi.png"); };
mes.channel.send({ embed, files: ["https://util.deadfish.cz/morepocasi/v/49.4348358/12.8147250/pocasi.png"] });
break;
mes.channel.send({ embed }); mes.channel.send({ embed });
break; break;