TravBot-v3/src/commands/fun/love.ts

11 lines
384 B
TypeScript
Raw Normal View History

import {Command, NamedCommand, CHANNEL_TYPE} from "../../core";
export default new NamedCommand({
description: "Chooses someone to love.",
channelType: CHANNEL_TYPE.GUILD,
2021-04-10 13:34:55 +00:00
async run({send, message, channel, guild, author, client, args}) {
const member = guild!.members.cache.random();
2021-04-10 13:34:55 +00:00
send(`I love ${member.nickname ?? member.user.username}!`);
}
});