2021-04-05 12:21:27 +00:00
|
|
|
import {Command, NamedCommand} from "../../core";
|
2021-03-31 01:40:29 +00:00
|
|
|
|
2021-04-05 12:21:27 +00:00
|
|
|
export default new NamedCommand({
|
2021-03-31 01:40:29 +00:00
|
|
|
description: "Chooses someone to love.",
|
2021-04-05 12:21:27 +00:00
|
|
|
async run({message, channel, guild, author, member, client, args}) {
|
|
|
|
if (guild) {
|
|
|
|
const member = guild.members.cache.random();
|
|
|
|
channel.send(`I love ${member.user.username}!`);
|
2021-03-31 01:40:29 +00:00
|
|
|
} else {
|
2021-04-05 12:21:27 +00:00
|
|
|
channel.send("You must use this command in a guild!");
|
2021-03-31 01:40:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|