discord_bot/commands/fun/hug.js

23 lines
601 B
JavaScript

const discord = require("discord.js");
const { Random } = require("something-random-on-discord");
const random = new Random();
module.exports = {
name: "hug",
category: "fun",
description: "Jemanden umarmen",
run: async (client, message, args) => {
let target = message.mentions.members.first()
let data = await random.getAnimeImgURL("hug");
let embed = new discord.MessageEmbed()
.setImage(data)
.setColor("RANDOM")
.setFooter(`${message.author.username} umarmt ${target.user.username}`)
.setTimestamp()
message.channel.send(embed);
}
};