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

11 lines
337 B
TypeScript

import {NamedCommand, CHANNEL_TYPE} from "onion-lasers";
export default new NamedCommand({
description: "Chooses someone to love.",
channelType: CHANNEL_TYPE.GUILD,
async run({send, guild}) {
const member = guild!.members.cache.random();
send(`I love ${member.nickname ?? member.user.username}!`);
}
});