24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
|
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);
|
||
|
}
|
||
|
};
|