discord_bot/commands/fun/punch.js

24 lines
612 B
JavaScript
Raw Normal View History

2024-02-07 14:45:22 +00:00
const discord = require("discord.js");
const { Random } = require("something-random-on-discord");
const random = new Random();
module.exports = {
name: "punch",
category: "fun",
description: "Jemanden schlagen",
run: async (client, message, args) => {
let target = message.mentions.members.first()
let data = await random.getAnimeImgURL("schlagen");
let embed = new discord.MessageEmbed()
.setImage(data)
.setColor("RANDOM")
.setFooter(`${message.author.username} schlägt ${target.user.username}`)
.setTimestamp()
message.channel.send(embed);
}
};