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

11 lines
337 B
TypeScript
Raw Normal View History

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();
2021-04-10 13:34:55 +00:00
send(`I love ${member.nickname ?? member.user.username}!`);
}
});