mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
14 lines
387 B
TypeScript
14 lines
387 B
TypeScript
|
import Command from "../../core/command";
|
||
|
|
||
|
export default new Command({
|
||
|
description: "Chooses someone to love.",
|
||
|
async run($) {
|
||
|
if ($.guild) {
|
||
|
const member = $.guild.members.cache.random();
|
||
|
$.channel.send(`I love ${member.user.username}!`);
|
||
|
} else {
|
||
|
$.channel.send("You must use this command in a guild!");
|
||
|
}
|
||
|
}
|
||
|
});
|