first commit

This commit is contained in:
2025-06-21 15:13:58 -05:00
commit 07f75bbd93
37 changed files with 3125 additions and 0 deletions

32
embeds/welcomeMember.js Normal file
View File

@ -0,0 +1,32 @@
const { GuildMember, EmbedBuilder } = require("discord.js");
/**
* @param {Client} client
* @param {GuildMember} member
*/
function welcomeEmbed(member) {
let welcomeMessages = [
`Welcome to the server ${member.user.username}. We hope you enjoy your stay.`,
`We hope you brought pizza ${member.user.username}.`,
`Yippe.... Welcome to the server ${member.user.username}.`,
`A wild ${member.user.username} has appeared.`,
];
const randomMessage =
welcomeMessages[Math.floor(Math.random() * welcomeMessages.length)];
return new EmbedBuilder()
.setTitle("**New Member**")
.setDescription(randomMessage)
.addFields(
{ name: "Joined at", value: `${member.joinedAt}`, inline: true },
{
name: "User Created at",
value: `${member.user.createdAt}`,
inline: true,
}
)
.setThumbnail(member.user.avatarURL());
}
module.exports = { welcomeEmbed };